1394 Commits

Author SHA1 Message Date
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
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