1420 Commits

Author SHA1 Message Date
hyunho1986
5777064501 [ONOS-6534]Device Null Point Error is Expected in PacketManager
Change-Id: Ibc21f78e6f269d902d4d2dfaf3071d804c2c4f72
2017-05-30 16:15:39 +00:00
Charles Chan
a9458535b0 Use DAD to probe if interface MAC is not supplied
Such that probed host will not learn the ONOS dummy MAC from the probe.

Change-Id: I0c4505c8908da2370eed3c2617d1bcf9d921872f
2017-05-29 18:19:19 +00:00
Yi Tseng
b32f774349 [ONOS-6397] Fix incorrect filtering objective condition from Intent copmiler.
LinkCollectionObjectiveCompiler should generate filtering objective
according to different situation.

This implementation use criterion from in/egress FilteredConnectedPoint and encapsulation tag for the
filtering objective.

Change-Id: Ib2ccd6fb00d055a96f2762ce261780ebc544a77b
2017-05-29 00:27:26 +00:00
Yoonseon Han
2b24337193 fix: (vNet) remove dependency for test codes
Remove dependency for intent service for virtual network service.

Change-Id: I7fff4bda367e4d35359ec44c885e942b099653d2
2017-05-26 22:22:27 +00:00
Yi Tseng
0db1f3b7de [ONOS-6481] Fix Intent resource release issue
Lables for encapsulation won't release because Intent manager release the
resources by Intent key only.

Allocate encapsulation labels by using Intent key instead of Intent Id to
resolve this problem.

Change-Id: I8fd52245063ded725e4b2c3911f52c029591ab90
2017-05-25 20:29:03 +00:00
Ray Milkey
8521f810b4 remove deprecated isDurable() method
Change-Id: I000fe7dc49b6ba231cc7483cf0ad67593b50f06e
2017-05-24 21:17:33 +00:00
Yuta HIGUCHI
a684b6ea99 Add K-shortest path API to PathService.
Change-Id: I96732666f31a7a2b2df9a16f63e77bc0a367da83
2017-05-19 15:45:52 +00:00
Yuta HIGUCHI
498fa1d321 Bump Guava to 21.0
Change-Id: Id81705773d191db6a18153d8b2dd4abd2bfd0e60
2017-05-19 15:40:12 +00:00
dingdamu
d3a0b215dd Fix latency constraint
1. Consider that the type "Duration" in the String is composed by
characters and numbers, it's not easy to convert it to double for
comparison, I modified the latency's annotation to
cfg.latency().toNanos().
2. Exclude two EdgeLinks for the calculation of the whole path's latency
3. The unit of latency in ONOS is not the same, so I set all the latency units to
nanoseconds.
4. Add the latency constraint option for ConnectivityIntentCommand.

Change-Id: Iddf5634880e43ed563db9978659db5eb9ee6c7f8
2017-05-19 02:01:23 +00:00
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