1661 Commits

Author SHA1 Message Date
Yuta HIGUCHI
76767fad4a "inject" Device provider
- feature to specify # of ports to inject

Change-Id: I4095814f3207b15b59fac9ff7f263c2f3d0a9c7b
2017-03-13 17:18:20 +00:00
Yi Tseng
9753fc11fe [ONOS-6118] Revert default number of threads in FlowObjectiveManager to 4
Change-Id: I6035c5a497947b67023da92c591f51f24a5bf314
2017-03-11 20:27:20 +00:00
Yuta HIGUCHI
d4e08c43d6 Ensure periodic polling thread to survive exception.
- Exception from a Device should not hurt other devices
- Exception during device iteration process should not
  leak leading periodic task to die.

Change-Id: I816d5e9430ec236a2809983189382d326a02e251
2017-03-10 03:42:28 +00:00
Yi Tseng
374c5f31f6 Make number of threads in FlowObjectiveManager configurable
Change-Id: I2035b6c954d1c5d31dea85c84665e626cf3a66c7
2017-03-09 21:53:49 +00:00
Saurav Das
b0ae6ee49e CORD-999 changes to support vlans
Major changes to the DhcpRelay app
   Bug fix to not depend on global variables that can be overwritten
   App is now vlan aware i.e. client and server can be in different vlans
   Added probing of dhcpServer to get mac/vlan instead of configuring these values
   Added optional gateway IP for cases where dhcpServer is "behind" external router
Added support in host monitor for trunk vlan configurations
Javadoc fix in Interface.java
Commented out unused log message in HostLocationProvider
Bug fix to make ALL group editing vlan aware.

Change-Id: Ib04ed6c1ef45055f771983db29724cfde24ac54b
2017-03-07 23:38:27 +00:00
Aaron Kruglikov
81b12989dd Removing check that can cause random build failures.
Change-Id: Ie0450efb57c2e4e4078cb0902416c98988447b7b
2017-03-03 09:10:12 +00:00
Yuta HIGUCHI
e37560f498 Some class of constraints should not be used for link cost evaluation.
ONOS-6021

Current ConnectivityIntentCompiler simply picks first non-negative cost as Link cost value.

Some class of constraints are used to express Path viability or IntentCompiler's behavior.
Those constraints tend to returns fixed arbitrary non-negative link cost, which probably is not the best option to be used as Link cost during path computation.

This patch will:
- Introduce base class for constraints which should not influence Link cost.
- Introduce base class for constraints which should not influence Link cost or Path viability.
- Exclude above classes from link cost computation in ConnectivityIntentCompiler

MarkerConstraint
 base class for Constraints,
 which is not meant to influence Link cost or Path viability.

PathViablityConstraint
 base class for Constraints,
 which is not meant to influence Link cost.

Change-Id: Ice8b83a18cfe3bf5a68c25a853667bfaedb2b1a1
2017-03-01 19:44:06 +00:00
Yuta HIGUCHI
48dcd37166 ONOS-6059 Favor FlowRuleProgrammable
Enable Driver to override flow programming implementation,
even for full feature southbound implementation, such as OpenFlow.

Change-Id: I3df74d3df741afe9a3900bc6a8e26a26a1ed1ec0
2017-02-28 18:50:28 +00:00
Charles Chan
29ecdeee0f Do not override configured hosts
- When multiple host providers add the same host, the configured one will always win
- A provider can only remove a host provided by itself

Change-Id: I38d95cceed6f36c71b8417ce6812bbd5add10e57
2017-02-24 14:00:36 -08:00
Michal Mach
ce774338fa [ONOS-5911] Port removal after receiving OFPR_DELETE port status reason.
Change-Id: I1f3f6c752da5f989a2d727f378e9f04fbbb71341
2017-02-23 00:24:21 +00:00
Yuta HIGUCHI
3120778d81 CLI to configure extra link attributes
Change-Id: I841857dc1f281a69565a68d38e99621ed15b62c9
2017-02-21 18:46:28 +00:00
Yi Tseng
2ef80144d3 Resolve NullPointerException when release resource
Change-Id: I1cd5dc20b9506ad934cebe5e7a2a7dfdadc170ea
2017-02-18 00:51:26 +00:00
Yuta HIGUCHI
f92598be5d Fix reference comparison of object
- fixes ONOS-6023

Change-Id: I24e58b46d0c7cd65e55ecc0e54f76c5cb7ff649c
2017-02-17 23:30:52 +00:00
Yuta HIGUCHI
7438f5a982 Mechanism to add Port annotation via netcfg
- intended to be used for driver to support ONOS-5895

Change-Id: Iddcf6f1b99273e8f8670b5f64fc9831e5f4ce3cd
2017-02-17 22:28:18 +00:00
Yuta HIGUCHI
59bde769a1 minor trace logging fixes
Change-Id: I9229aa551532470b0581f2f17acb0be4793c24a7
2017-02-17 09:46:21 -08:00
Simon Hunt
bc30e68753 More plumbing of grid coordinates vs. geo coordinates.
- Added background reference parameter to layout command
- send correct location data to client for devices, hosts

Change-Id: Ic00bda76f4e4bc8d3e23e07a08f3bc5367ec85a9
2017-02-16 15:46:59 -08:00
Luca Prete
de10c78a4b ONOS-5808: Allocate BW from ConnectivityIntentCompiler and unit tests for partial failure
Change-Id: I2eb3c16efbce619db6d0d2ba415a35752a61ece4
2017-02-16 21:32:32 +00:00
Luca Prete
670ac5dd95 Resource group to share resources between intents
Change-Id: I5bf7d4261197449924d07dabac841cf8ccbe9389
2017-02-16 21:14:05 +00:00
Yuta HIGUCHI
fa9ee8c13f Minor improvements around Scalar weight.
- ScalarWeight should be immutable
- Added constant for default weights
- Added factory method

Change-Id: I700e89abe968838a5049a441c37a92ffdb63f1bc
2017-02-15 23:14:57 +00:00
Yuta HIGUCHI
5691faf532 Add log on ProtectedTransportIntent compilation error
Change-Id: Ie6ca008fc88f0168e4ce81129e73d235f8a9c1a1
2017-02-14 00:47:12 +00:00
Ray Milkey
54a78514d2 Starting snapshot 1.10.0-SNAPSHOT
Change-Id: Icd6983be6a52293fb8a846a02d5e314c2c7aeaf0
2017-02-13 11:13:52 -08:00
Ray Milkey
57b510152e Starting snapshot 1.10-SNAPSHOT
Change-Id: I800d5d9e7f23793f5288457bca449ca382896723
2017-02-13 11:06:55 -08:00
Ray Milkey
de84cdde9a Starting snapshot 1.9.0-SNAPSHOT 2017-02-13 10:54:12 -08:00
Ray Milkey
8588c48114 Tagging 1.9.0-b3 2017-02-13 10:52:31 -08:00
sivachidambaram subramanian
dde26b65af FIX-FOR-ONOS-5938
Change-Id: Ica62bac9b37e0d970f1995983c25961d050985e0
2017-02-07 23:34:59 +00:00
Pier Luigi
e6caf6877b Fix for [ONOS-5875]
- Delays the resubmitting of Intents in Installing/Withdrawing state

Change-Id: I0ccb214053429749752929fcf78f968beb950a79
2017-02-07 11:02:28 -08:00
Pier Luigi
13b287fe31 Fix for [ONOS-5825]
Changes:
- Adds exception management in the mgr;
- Improve logging of the clean up;

Change-Id: I3ca94761e5b4550b7f8df34e9de4a481bc546be3
2017-02-07 18:30:36 +00:00
Pier Luigi
9b1d626905 [CORD-783] Greedy learning of IPv6 hosts
- Opportunistic learning of IPv6 link local addresses

Change-Id: Ic94a8239c1ae81fc83453d1a29dfc8bd9803b531
2017-02-07 18:04:22 +00:00
Thomas Vachuska
2323596967 Added code to intent unit tests to pre-emptively unbind ID generator to avoid cascading failures.
Change-Id: I2e5aff44a90ceeaaad71d7154b79f20edab620a7
2017-02-03 11:44:15 -08:00
jaegonkim
7e876633c8 [ONOS-5903] Intents always installs first path. Traffic path load is not distributed.
+ Adding HashPathSelectionConstraint
            + Adding '--hashed' option in add-point-intent cli for intent hashcode based path selection
            + hashed path selection % size bug fix

Change-Id: I2e867934a0bbed66301118973d7e1d1483d7cb0e
2017-02-03 02:01:49 +00:00
Yuta HIGUCHI
51590ff58c Ensure all Intents reaches installable state.
Previousely, there was an implicit assumption that
all Intent will reach installable state at same # of compilation steps.

ONOS-5855 opened a possibility for an Intent to be compiled down to
multiple kind of installables.
As a result, assumption that all Intents will reach installable
state after same # of compilation steps is likely to break.

This patch will wait for all compilation result to reach installable.

Change-Id: I307f39b660b586fc4cd98be9d1212c32163f0a90
2017-01-31 17:20:29 +00:00
Yuta HIGUCHI
3026c9b6e0 ONOS-5921 Fix isInstallable test logic
- fixes regression introduced by ONOS-5855

Change-Id: If171d2401b2d8cdace6bf9dea9dbe0eb03890fcc
2017-01-30 22:20:27 +00:00
Aaron Kruglikov
1a15b063c7 Removing assert that will cause random failures and correcting range for mpls.
- fixes ONOS-5912

Change-Id: I870b5cec687470f43f9b44c4a9f650e4cb3ac9d5
2017-01-30 20:08:48 +00:00
Yuta HIGUCHI
63bbedd589 Add more error logging
Change-Id: I0e4feede9f23db9026635b79a3580675eef05733
2017-01-30 19:10:46 +00:00
Yuta HIGUCHI
d5324f3d61 log more details on unsupported installable error
Change-Id: I394123348e50d4c2bfd3c0fffda0707c30eefdf5
2017-01-27 23:13:53 +00:00
Yuta HIGUCHI
327392107d Use marker in ProtectedTransportIntentCompiler
- for ONOS-5827

Example:
onos> intent-details
Key: 0x9 ID: 0x9
 Request: INSTALL_REQ Current: INSTALLED
 intent: ProtectedTransportIntent{id=0x9, key=0x9, appId=3-org.onosproject.cli, priority=100, treatment={immediate=[NOACTION], transition=None, meter=None, cleared=false, metadata=null}, one=of:000000000000000d, two=of:000000000000000e}
 installable: FlowRuleIntent 0x10
  resources: protection1, fwd
  links: of:000000000000000d/7 -> of:000000000000000a/3, of:000000000000000a/4 -> of:000000000000000e/3
 installable: FlowRuleIntent 0x11
  resources: protection1, rev
  links: of:000000000000000e/3 -> of:000000000000000a/4, of:000000000000000a/3 -> of:000000000000000d/7
 installable: FlowRuleIntent 0x12
  resources: protection2, fwd
  links: of:000000000000000d/2 -> of:0000000000000005/6, of:0000000000000005/9 -> of:000000000000000e/2
 installable: FlowRuleIntent 0x13
  resources: protection2, rev
  links: of:000000000000000e/2 -> of:0000000000000005/9, of:0000000000000005/6 -> of:000000000000000d/2
 installable: ProtectionEndpointIntent 0xa
  resources:
  links:
 installable: ProtectionEndpointIntent 0xb
  resources:
  links:

Change-Id: I7d2411346a11c2550490c3b77353feb5e6067b1d
2017-01-27 21:54:54 +00:00
Yuta HIGUCHI
dcfa31ab0e ONOS-5603 ProtectedTransportIntentCompiler
Change-Id: I681f24662d8e9be06f1e216fa9aa45b1dd44757d
2017-01-27 21:54:54 +00:00
Andreas Papazois
055489695b ONOS-5855 Intent installer for Protection
- This patch is effectively combination of following to unblock
  protection related code:
  + Intent installer and operations for domain intents.
    Change-Id  Id4597baebf587b1bc9b3ae9013383ae50472fa4c
    by Andreas Papazois <andreas.papazois@gmail.com>
  + ONOS-5604 IntentInstaller for protection
    adds ProtectionConfigOperationContext
    Change-Id Ia9f5ddd44c9765867b5e2daaa7a7478c1dc2f2e3
  - removed dependency to Intent Domain related classes.

Change-Id: I027eedb020b3f4240c545dc92e47c4262d8b6ec6
2017-01-27 21:54:54 +00:00
yoonseon
322c9c3520 [ONOS-5731] Implement skeleton of VirtualNetworkPacketManager
Changes
1. Added VirtualNetworkPacketManager
2. Added VirtualNetworkPacketStore interface and impl class
3. Added VirtualPacketStore impl
4. Simple test cases are added

Todo
1. More test cases

Change-Id: I86f0484a9ee038dab8716703f0e5e41cbcf30cb1
2017-01-26 20:22:09 +00:00
Yuta HIGUCHI
1d0d9cc89e ONOS-5604 ProtectionConfig listener
- It should now be possible to call ProtectionBehaviour via netcfg REST

  $ onos-netcfg $OCI protection_config.json

  For example JSON file, see
   core/net/src/test/resources/org/onosproject/net/behaviour/protection/protection_config.json

Change-Id: Ida78eff32ed66ebb6618a4ad52f42c0d97c7340c
2017-01-25 18:52:34 +00:00
Victor Silva
0282ab8e95 [ONOS-5797] GroupService: add setBucketsForGroup
Add method to set all buckets from a group, overwriting the
previous group buckets entirely. Useful for edits that before
required two operations: removing the buckets and then adding
others. It can all be done with one OF message in the end.

Change-Id: Ic5669603ed4fd18b8efaa8d0253ab9d7b1e870f5
2017-01-25 17:13:44 +00:00
Yuta HIGUCHI
a255bb4f69 ONOS-5595 netcfg for protection
- ProtectionConfig
- TransportEndpointDescriptionCodec

Change-Id: I79e304a20e9d1f95a4b432542738c64102550650
2017-01-25 17:12:30 +00:00
Jon Hall
a90c44c0a3 Surpress excess warning messages
Don't ask for role of NONE when a device is disconnected and role is
already NONE

Change-Id: Ib86335cc17847c820c33743897ae087765271be9
2017-01-25 16:57:50 +00:00
Andrey Komarov
2398d960b9 Vector cost proposed to TST on 2016-07-13
First part implemented: weight interface introduced and integrated, default weight implementation added.

Change-Id: Ia46f1b44139069aa171a3c13faf168351bd7cc56
2017-01-23 17:27:20 +00:00
Luca Prete
d26ea65e84 ONOS-5799: Make SP2MP compiler partial failure constraint aware
Change-Id: I741c3a22916e7e51e5882bd3993d425e78f18bda
2017-01-20 16:41:06 +00:00
Pier Luigi
37b687bdf5 Adds utility functions related to the link local addresses
Change-Id: I26045542d4f9d60a0d7d0905087136b995f8c03e
2017-01-20 16:19:02 +00:00
Ray Milkey
287b4ae810 Starting snapshot 1.9.0-SNAPSHOT 2017-01-19 15:21:17 -08:00
Ray Milkey
2557ba3375 Tagging 1.9.0-b1b 2017-01-19 15:20:17 -08:00
Jon Hall
cbd1b39f58 Sonar fixes
Rule: Use isEmpty() to check whether the collection is empty or not.

Change-Id: Ib5ab56b2263623b297db56c5cac2c2ee80e12725
2017-01-19 20:24:18 +00:00
yoonseon
c6a6927813 [ONOS-5833] (vCore) Refactor vnet services
to enable event delivery mechanism

Changes
1. Abstact Vnet Listener Manager is added
2. Refactor Vnet services to use it

Change-Id: I178342bfc882c0739f216960358a281903e1385a
2017-01-18 22:21:11 +00:00