1661 Commits

Author SHA1 Message Date
Yuta HIGUCHI
4f8a377740 ONOS-6468 Fix for race condition between compilation and installation complete state.
- Fix for a bug where intent compilation complete state,
  can overwrites intent installation complete state,
  if intent installation completes before compilation complete state is written to the store.
  - Introduced internalState version on IntentData,
    which is effectively mutation count, in order to avoid
    batch write of compilation result overwriting installation result

Change-Id: I5d77dfbe496e690ebdf2b4f9643d2b64c4233182
2017-05-18 21:26:07 +00:00
Yi Tseng
1666b50c78 [ONOS-6476] Fix performance issue of FlowObjectiveManager
Change-Id: I72092e2796d69bccd30c0ab54c5c66d75c5a0878
2017-05-18 21:11:08 +00:00
Ray Milkey
048bf9af15 Remove deprecated API from the Interface class
Change-Id: Id25d58a74cf5511e964b24b3de5eba80da74104d
2017-05-17 17:12:33 +00:00
Simon Hunt
ffbad3b10a ONOS-5784: Empty latitude/longitude in ONOS Web UI
- (part one)
- Enhanced HostManager to react to NetworkConfigEvents such that
     it applies annotations to relevant host instances from the
     config data.
- A little refactoring in DeviceManager.
- Updated topoModel.js to use updated field names latOrY/longOrX.

Change-Id: I06536a6b2279291ffe638549a80b56a9fe94f48a
(cherry picked from commit 78193fd06661a7fa524c8b3a8fa7ddb69d7437c9)
2017-05-17 01:35:57 +00:00
Yuta HIGUCHI
f76f6d588f Add more log for debugging.
Change-Id: I384729ae6b96a5e6fb6529f92cd4606b0262d46e
2017-05-15 18:03:51 -07:00
Yuta HIGUCHI
965da1f700 Fix wrong logger
Change-Id: Iacd56262fbe464fca5258383237caf1cd45cbcb5
2017-05-15 14:47:04 -07:00
Ray Milkey
08b03a9ec8 Starting snapshot 1.11.0-SNAPSHOT
Change-Id: I5aa84e241545dace6192243c0079924ddf899404
2017-05-15 18:40:20 +00:00
Yi Tseng
24d9be7431 [ONOS-6446] ObjectiveTrackerService is not a public service
If an application want to create custom Intent installer, it might need
ObjectiveTrackerService.

However, the ObjectiveTrackerService is not public api (in /core/net,
should be /core/api); so application outside the ONOS can't use it.

Move ObjectiveTrackerService and it's dependence to /code/api

Change-Id: Ie2ad8dd9d39ccae1c91f4b57887089e0aec83ede
2017-05-15 16:45:16 +00:00
Saurav Das
1547b3ffd8 CORD-1180 Collection of fixes for hash-group buckets. Required the following changes:
Next-objectives that edited groups are now queued in the FlowObjectiveManager instead of the driver.
	  During linkup immediately checking for previous portups that should be added to a hash group.
	  A final retry 30 secs later to catch all ports that should be part of the same hash group.

Change-Id: I7ef450149d685890ca47932b8e559a0c11dc5ab4
2017-05-12 21:37:00 +00:00
Yi Tseng
49a2b2e93f Fix incorrect state of Intent after re-installed from FAILED state.
Avoid same IntentData resubmitted by multiple ONOS nodes.
Also, avoid same IntentData/IntentOperationContext modified by different
threds.

Change-Id: Ifb550c41204d6e86e379fd44c2787980920d2b9e
2017-05-12 17:37:31 +00:00
sivachidambaram subramanian
8c9a701804 [ONOS-6354] CFG values and applied values are mismatching while trying to set a property with an invalid value
Change-Id: Id2e343c61419441d0b9554df3291b35829e850ab
(cherry picked from commit c86d95f969864664beb3948bc5ff2c455e372393)
2017-05-12 17:04:22 +00:00
zhiyong ke
60e40007bd modify the bug of https://jira.onosproject.org/browse/ONOS-6286
Change-Id: I3217ad91eb079a58fc270db121dbd5a2b6d120d9
2017-05-11 22:29:21 +00:00
Yuta HIGUCHI
8091877b33 [ONOS-6414] use Config object from NetworkConfigEvent to avoid NPE
Change-Id: If7170e7b8c18c43321e18c505a15627f485165b6
2017-05-11 22:18:05 +00:00
Thomas Vachuska
2048c1f81b Cleaning up intent tests setup/teardown to avoid cascading failures
with respect to binding ID generator.

Change-Id: Ia4778f16ff5a3ecb26062e7d7b2c36493081140d
2017-05-11 09:39:42 -07:00
Yi Tseng
c927a06fe9 [ONOS-6348] Intent installer redesign
Change-Id: I9ae2e8158dc1c686eaf848f330566f9dbb78405f
2017-05-10 15:24:37 -07:00
Thomas Szyrkowiec
770093f664 Extension of the LinkCollectionCompiler to support Domains
Introduced the DomainConstraint which marks intents that allow domains.
Added the handling of domains to the base compiler and its implementations.
Fixed existing test by adding the domain service and added new ones for domains.

Change-Id: I6594e92e41c2434a9b667415e6fb90a6c571df79
2017-05-10 10:06:44 +02:00
Yuta HIGUCHI
2103304789 Fix to enable adding INDIRECT link via BasicLinkConfig
- addConfig will create and 'advertise' a new default Config object.
  In the case of BasicLinkConfig, default link type will be DIRECT.
  Link subsystem ignores link transition from DIRECT to INDIRECT
  in order to prefer LLDP info over BDDP info.
  As a result it is difficult to create an INDIRECT link
  via Java API calls.

Change-Id: Id736f3a8332b7558387c3eb7598e1239779c6fe8
2017-05-08 20:53:32 +00:00
Yuta HIGUCHI
0164c1c9f2 Log some context when Intent failed.
Change-Id: Ib30f78f970680144f920ca4754825f78eedb658b
2017-05-05 20:54:57 +00:00
Michele Santuari
a271faa8c3 Implementation of the DomainService
Change-Id: I012c31d113fbcc12d4c35cb10d11d7be4cd83458
2017-05-05 16:44:10 +00:00
Yuta HIGUCHI
65d9d0ebc6 [ONOS-6412] allocate resource by Intent.Key
- Allocate resources by Intent.Key instead of IntentId

- ONOS-5808 changed the IntentManager's Intent withdrawal behavior to
  release resouces allocated by Intent.Key
  (was releasing resource allocated by IntentId)

Change-Id: I62e048e4ee8f841b92d9985784c95abba3d37a0a
2017-05-04 22:31:56 +00:00
Andreas Papazois
f00087c132 Intent installer and operations for domain intents.
Change-Id: Id4597baebf587b1bc9b3ae9013383ae50472fa4c
2017-05-04 22:23:59 +00:00
Michele Santuari
03df2a57f2 Domain intent manager
Change-Id: Id146977c2ac94b009d843058f953446f686d1800
2017-05-04 22:15:47 +00:00
Yuta HIGUCHI
ac8b229375 ONOS-6225 Expose k-shortest path search as part of TopologyService.
Change-Id: Idf812a707aba0b972fcfbde871c624dfc86b6e1b
2017-05-04 19:11:06 +00:00
Thomas Vachuska
11b99fc941 Refining driver subsystem to facilitate coordinated start-up.
- for ONOS-6402

Change-Id: I7f64fc62ad1d451fcf55624b2422b60631a3c8e8
2017-05-04 15:55:16 +00:00
Yuta HIGUCHI
e4cb8cf56c Manage misleading log messages
- Reduce logging for
  - Packet rule installation failure for NETCONF packet switch
  - NETCONF device which does not support port stats

Change-Id: I4721f65088f34d3e473f22738f27e093fe8df270
2017-05-02 22:38:14 +00:00
Ray Milkey
8fd28c7b80 Starting snapshot 1.10.0-SNAPSHOT 2017-05-02 14:37:34 -07:00
Ray Milkey
f0099022d2 Tagging 1.10.0-rc1 2017-05-02 14:35:27 -07:00
Yuta HIGUCHI
660aedfa4d Avoid interacting with SB if nothing to do
- Workaround for Fujitsu driver not being able to handle
  empty operation.

Change-Id: I6c68b893360e30beef707e40d2b619912bb9b257
2017-05-02 16:31:16 +00:00
Simon Hunt
8f60ff8dcd ONOS-6257: fixing Region-peer-location function...
- corrected UiRegion.isRoot() implementation
- added to/from-compact-strings for LayoutLocation, so we can encode
   a list of them in an annotation
- Fixed bug in DistributedRegionStore which was emiting events that
   had a null region as subject.

Change-Id: I547e0c7f62385b85b191b8d63e6b569196623b84
2017-04-26 16:42:59 +00:00
Yi Tseng
424bfa7f79 [ONOS-6302] Fix wrong flow rules when install flow rule Intents
Change-Id: I8ef42e53c0bd718b5d955e1fc572b8361825234f
2017-04-26 06:38:22 +00:00
Yi Tseng
84c5a3d8ad [ONOS-6303] Fix incorrect flow rule from link collection Intent compiler
Change-Id: If39da291c7558cf6a97e742dc0774df0874a9330
2017-04-24 16:28:17 -07:00
Yi Tseng
a64f0c88b5 [ONOS-5932] New FlowObjective compiler for LinkCollection Intent
Change-Id: I50ca991bf0997a24dd18cf68c060c2c0912f294c
2017-04-24 22:30:51 +00:00
Yi Tseng
38fc71e483 [ONOS-6016] Enhance IntentInstaller for FlowObjective
Note:
Provide order of objective context (for remove only)
Handling objective errors in intent installer

Change-Id: I50bb9d7a17a0ae71d22ba035cd5bc80f485ec45a
2017-04-24 22:13:52 +00:00
Yuta HIGUCHI
076a788175 Avoid unnecessary FlowRuleProgrammable polling
- Schedule background task only if there is a chance for positive
  availability event
- Exclude DEVICE_UPDATE type

Change-Id: I574cfe4ce3468e0be7010ed164cb02d4eeb88ec3
2017-04-24 17:16:53 +00:00
Yuta HIGUCHI
8c47efeaa5 Make sure backup path satisfies constraints
Change-Id: Ifbf4815dc86a1ad2dcc9314649925d018eb3bb8e
2017-04-12 10:00:57 +00:00
wu
76a3d675ed ONOS-6265 fixes the issue: intentManager.unregisterCompiler error
Change-Id: Ic75d1537a7330967a07fd602f9522e447b869ce9
2017-04-11 15:22:31 +00:00
Ray Milkey
36cbc71fa0 Fix problem with cluter not forming
Change-Id: Iea3ad0b5dd3367ed88663cf5ade3f81aacc2bfce
2017-04-07 13:33:59 -07:00
Ray Milkey
e4afdb5f17 Fix Sonar errors: public data members in classes
Change-Id: I7aca37d5553436167ac6e7b2206392f88bddc118
2017-04-06 00:13:24 +00:00
Jon Hall
a3fcf6754a Fix Sonar issue:
Strings literals should be placed on the left side when checking for
equality

Change-Id: I4537e08936731ace55aeecb3ad941269ec1eb191
2017-04-05 22:54:30 +00:00
Charles Chan
54734711e7 Showing more information in pending-obj-nexts
Change-Id: I85c6632687093dca77ca978b6f4b8f3e0ee76348
2017-03-31 21:26:47 +00:00
Yuta HIGUCHI
1f3b372f40 Log port registration error
Change-Id: Ib50f843d03deecc762269c58c9b13a8c5f3adb22
2017-03-28 18:48:01 +00:00
nitinanand
ddfa8c99bb Fix for JIRA issue ONOS-6160. To avoid possible null pointer reference for 'device' object in file 'DeviceManager.java' at line no 574.
Change-Id: I182d2759486ff13e8a01da6783651e2da69267a0
2017-03-28 17:42:11 +00:00
Yi Tseng
fa394defdc Fix for ONOS-5175. GroupId refactoring.
Science DefaultGroupId was deprecated, remove it from ONOS

Change-Id: I82394e58ec1ba10c37492ed77546e233de9f934f
2017-03-24 21:13:57 +00:00
Jonathan Hart
f4edb318c3 HostMonitor: Only probe directly if we are not already monitoring the host.
Change-Id: I0ab7714056a19ee197dd16d2fe652bfa6a04115f
2017-03-24 17:58:48 +00:00
Thomas Vachuska
0439fd701a Cleaning pom.xml files. Please everyone, watch the sloppiness for Pete's sake!
Change-Id: I31bd8d589d306f50b2724223c5dabd066f0961da
2017-03-24 10:05:39 -07:00
Charles Chan
9238b38b2a Probe all interfaces that contains given IP
Change-Id: I150471a2031c214d5f08c76b974e7449e930b453
2017-03-22 20:34:27 +00:00
Yuta HIGUCHI
a2a4f34998 lower log level when pipeliner not supported
- was flooding the log on non-openflow devices

Change-Id: Idfffa213c1f8baaa971ea031b45db1d3f9c8618f
2017-03-17 11:38:57 -07:00
Marc De Leenheer
4effa06b8e Make LinkManager aware of unidirectional links.
Change-Id: I8a1a9b1909bf47dcca65fd2440dd54599916e193
2017-03-16 03:08:00 +00:00
Yuta HIGUCHI
0f4d63a2f3 Proper handling of Link expected state
- inherit from Link
- or only expect a Link for white list(=allowed) configuration

Change-Id: Ie539ad5d738438ffc3e7eed6a509aadc08068ac7
2017-03-14 04:25:18 +00:00
Yuta HIGUCHI
edd932fb2c use toImmutableSet converting Stream to Set
Change-Id: Ifc6eac3bfd524fbf076a076bb73e5b2e51706066
2017-03-13 17:51:15 +00:00