1637 Commits

Author SHA1 Message Date
Carmelo Cascone
181f3f46cc Fixed wrong LPM mask in PI flow rule translator
Change-Id: I5c8c67ae4b989ed326c6e17c0fe1e5745defd900
2018-04-12 01:05:00 +00:00
Carmelo Cascone
81929aa0cf Bumped supported commit of P4Runtime and BMv2
Includes fixes for:
- ONOS-7593: Support for indirect resource Index type
- ONOS-7595: Removed ID from direct resources
- P4Runtime requires unset bits to be 0 in ternary field matches
- Incorrect parsing of flow rule byte counters
- Full entity names in P4Info with top-level control block (fixed only
	for basic.p4, other programs need to be re-compiled and PI IDs in
	respective pipeconf changed)

Change-Id: Ia19aa949c02e363a550e692915c6d6516a2d13d7
2018-04-11 19:04:45 +00:00
Jordan Halterman
3065ba35b5 Validate that cluster configuration intersects with existing nodes when forming cluster
Change-Id: I200b25f2e9ae3380ccd90a6b58cd697f1e3029b4
(cherry picked from commit 9a93304b03dfdd34d3679da1dd52fcc676307af2)
2018-04-10 22:49:17 +00:00
jaegonkim
dc8a55609d [ONOS-7585] ObjectiveTracker.intentsByLink is not updated after ONOS node reboot
Change-Id: Ic3fd00fdae2e934739f6536bfad8310596dbc2ef
2018-04-10 22:32:02 +00:00
Yi Tseng
7be4e67f7b [ONOS-7288] Fix race condition of device manager
Change-Id: I38aaae701e96f1114177e619c6f30e1b79f0134a
2018-04-10 18:38:14 +00:00
Palash Kala
6c52606a43 [ONOS-7573][Test successful] Mark online does not notify peers device subsystem
Change-Id: Ie347241325047cb65c836c849bec6aebad758820
2018-04-10 16:51:54 +00:00
Jonghwan Hyun
2c95acfde8 Support double-tagged host
Change-Id: Ie4041a0b5159e7a8b3a9ed82b55ce3c26b520a3b
2018-04-09 23:17:44 +00:00
Jordan Halterman
ca7660a289 Add rolling upgrade test.
Change-Id: Id1b09361aa69f1665f19c312933798b5206d46ac
2018-04-09 17:30:12 +00:00
Carmelo Cascone
8a571af574 Support for bitwise AND/OR/XOR in ImmutableByteSequence
Also, minor refactoring of the fit() method to improve code readability

Change-Id: I826650c3fc45573c723d9d2dd8692da174d9ae08
2018-04-09 16:56:49 +00:00
Charles Chan
aa7e97333a CORD-2917 Should not push packet requests that target specific device to all devices
Change-Id: I1ee4c39c358d7ae0ac6bb0ecdc3ea471f5082ac1
2018-04-07 01:46:32 +00:00
Charles Chan
c09ad6dfee Refactor logging in InOrderFlowObjectiveManager
- VERIFY is recursive. Lower it to TRACE

Change-Id: I9a7d84162a40ddc9b92a745790b394db9dde9787
2018-04-06 00:38:39 +00:00
Yi Tseng
df3eec5641 [ONOS-7493] Segment routing may uninstall forwarding with no next id
Change-Id: Id78b9ed94633b7e96fdeebe185e28d6de386e3ec
2018-04-05 21:00:39 +00:00
Yi Tseng
d28936e79d [ONOS-7500] Supports PiTableEntry with no action
Change-Id: I92a38b184d4ded539297f1d99e1405eea014bda0
2018-04-05 20:33:15 +00:00
Frank Wang
d7e3b4bc9d [ONOS-7051] Support for P4Runtime meters
Change-Id: Id71374af65aeb84b71636b4ec230dc6001a77a8b
2018-04-04 00:35:08 +00:00
Thomas Vachuska
a10137c0fc Fixing residual ON.Lab references.
Change-Id: Ic54a281ce67e49236c7aeb536729d3900dd9433d
2018-04-04 00:02:22 +00:00
Carmelo Cascone
4256bded84 Support for PI table entry with default action
Equivalent to a flow rule with empty selector

Change-Id: I5dcbc234e59e3d8647476ffa54d80f5861bad077
2018-04-02 20:37:59 +00:00
Charles Chan
a7903c81b6 Implements in-order flow objective execution
Change-Id: I6d11e25bc44c07ef8488e51b63c3ff8a88d98f9c
2018-04-02 18:15:29 +00:00
Palash Kala
0d817b0d7f [ONOS-7555] Device local-status and device availability parameters are not synchronized in cluster
Change-Id: I1720dc471ce41aabefb84a537319f091f01d46f4
2018-03-29 16:24:55 +00:00
Jordan Halterman
225f4dcde7 Avoid blocking event thread in ResourceDeviceListener
Change-Id: Ia17721ce3a435440f9383e55757ffb90ec555e9a
2018-03-26 17:55:26 +00:00
Ray Milkey
054e23d0cf Add uptimes to device and cluster REST APIs
Change-Id: I0ccdf4e33135be4bcfd1674a76ff4b39e992268b
2018-03-22 13:48:50 -07:00
Thomas Vachuska
227943db23 Cosmetic fixes to FlowRuleManager.
Change-Id: I473a205f22d284502e0b66d894c859fb7a34b813
2018-03-19 09:37:28 -07:00
Ray Milkey
d29bc1ceef Improve unit test coverage for basic config classes
Change-Id: I8a9d6d51fcad89d8d215253fafdbecb12f1c81df
2018-03-16 20:30:05 +00:00
Yuta HIGUCHI
435f23c48d Gracefully handle Device not there yet
- according to the javadoc, this should return
  DomainId or null

Change-Id: Idf1a1719bd987ed1d22e4801a7a2fa8a22fd532b
2018-03-12 21:12:16 +00:00
Ray Milkey
6a51cb9c4d Remove calls to deprecated Throwables.propagate() method
Change-Id: Id48a8f1d4fb02560cfb77108f554556a3cad9b16
2018-03-07 21:52:46 +00:00
Pier Luigi
9789311cd4 [CORD-2802] Fix events reordering in FlowObjectiveManager
Change-Id: I5fac27240eac0c182d565ab84e9d8209f4e8d2ce
2018-03-06 18:40:49 +00:00
Thomas Vachuska
a8e7477603 Adding command to add routes and to generate flows from them.
Enhanced FlowRuleStore and FlowRuleService with a new method.

Change-Id: I011371c1931294448e361fc1ceb120d89c14489d
2018-03-05 21:53:35 +00:00
Yuta HIGUCHI
53e4796d55 Deprecate potentially error prone constructor methods
Change-Id: I82d95c27dc7c4b1a6dcf5cc48a1c7583b5e30e2c
2018-03-05 20:43:39 +00:00
Yuta HIGUCHI
2b1935d824 ONOS-7509 preserve all attributes when ensuring enabled state
- it seemed deleted flag was lost due to old code.

Change-Id: I0abb22835318f2e165bbf23fa2978b601d563be1
2018-03-02 22:46:55 +00:00
Thomas Vachuska
611f466a83 Fixing issue in component config subsystem where the locally registered
property value does not get properly updated on startup and thus wrongly
retains its default value.

Also update the Javadocs for the newly added ComponentConfigStore methods
to properly reflect the sparse map semantics.

Change-Id: I4be4fe66d45a6e20bd235c61b06e2ebcb81dfe5b
(cherry picked from commit a3b55a90bb6b09d80ae486bf8a53ae028db2aafa)
2018-02-28 01:01:14 +00:00
Thomas Vachuska
4b32fcb10c Fixing ComponentConfigManager to preset values locally; not just in the distributed store.
Also added 'preset' usage to the 'cfg' command.

Change-Id: I90df276e68328716784ca1f8624d4d0b8266ad24
(cherry picked from commit 8c73019d271efd7975f1f94c2aa32456dd73c170)
2018-02-20 22:16:38 +00:00
Carmelo Cascone
0e5632a4e4 Sonar is not happy with RuntimeException
Change-Id: I6bc2d357926aef0fe3eca808b5aa3b55e1af3571
2018-02-20 11:43:56 -08:00
Carmelo Cascone
abbd1eeb86 Fixed race condition in CriterionTranslatorHelper
Change-Id: I3869afeb0331bb2f7896a5948c671b54be91d49a
2018-02-18 19:10:57 -08:00
Ray Milkey
7483e1b466 Remove deprecated LinkWeight interface
Change-Id: I4d3edab133d115ba189f317202d2dfba9b100918
2018-02-16 17:40:29 +00:00
Ray Milkey
a2cf3a1505 Remove deprecated connect point APIs for point to point intents
Change-Id: Ie7d29a9e6d54283d3a3310ed8b1e749a631031b1
2018-02-16 17:25:04 +00:00
jaegonkim
1c1f0c2c59 [ONOS-7410] DeviceManager.deviceConnected does not apply device annotations
Change-Id: Iafaa4bdc717d19052660ccf1c7455494ff95d22f
2018-02-15 22:37:25 +00:00
Thomas Vachuska
9f6bd52524 Fixed issue where component configuration would not propagate on node restart.
Change-Id: I431ce444025cc9a8021dd68fa23c6e8c29fa6c19
2018-02-13 00:29:42 +00:00
Ray Milkey
92d206b267 Remove deprecated link collection intent compiler
Change-Id: I02624b5ce28721249ec251523990ed05d97c1b19
2018-02-12 15:41:13 -08:00
Ray Milkey
6a36035be0 Remove deprecated private method
Change-Id: I4513802d0441e643fb32f948ada1c222b12debc2
2018-02-12 13:53:26 -08:00
Ray Milkey
a7cf8c8f55 Remove deprecated DefaultPath constructor with a scalar cost
Change-Id: Ifc4104cff773c9c692cc108fda02ce44bc6c2870
2018-02-09 17:51:28 +00:00
Saurav Das
c568c34e0c Implemented CORD-1843 to avoid race condition when updating ECMPspgs.
In this commit:
 - a new mechanism in DefaultRoutingHandler to update route-path maps in all instances,
   for the entire topology, after every route event has been processesed.
 - fixed a race condition in LinkHandler
 - avoids retrying flows in the ofdpa3 driver as this issue has been fixed in the switch
 - a new CLI command to check internal link state

Change-Id: I307d0a96cc46569294d15d042b3bcb1fde735f1b
2018-02-08 20:50:12 +00:00
Ray Milkey
5c7d488269 SONAR suggestion - proper handling of InterruptedException
Change-Id: I67a93c064708c207d9ce83fac319682c2d17db60
2018-02-07 00:59:07 +00:00
Ray Milkey
961b19f66d SONAR suggestions - eliminate lossy arithmetic
Change-Id: I5a02ea407225ee0c9df040b74a8c0dc2ee5d5cb3
2018-02-06 17:54:52 +00:00
Ray Milkey
3717e604d5 SONAR suggestions - prevent truncation of arithmetic expressions
Change-Id: I4694c0c3183b991a4f0db793f584bc77a5fb7d60
2018-02-02 23:06:44 +00:00
Ray Milkey
986a47aa7c SONAR suggestion - generic exceptions
Replace uses of generic RuntimeException
with more appropriate unchecked exceptions

Change-Id: If283743c2cf7252b8d280bdb788708ebbe57da9d
2018-02-01 18:36:33 +00:00
Yuta HIGUCHI
fbd9ae9cdf Various small fixes
Change-Id: I83802169d0d968f7b88d4be2cedba74b15fdd7da
2018-01-25 22:17:25 +00:00
Jonathan Hart
34a14f71f0 Add more logs to help debug packet processing issues
Change-Id: Ia9e36bff44b6bad018305725ebb0fc2a47c86376
2018-01-25 22:13:44 +00:00
Yi Tseng
02c4c579f4 [ONOS-7392] Fix P4Runtime priority bug
Change-Id: I97aabb25ebf4f2d16c3c7f17f369a7744ef03994
2018-01-23 07:50:31 +00:00
Ray Milkey
fe0e085ed2 SONAR suggestions - boolean expressions that are known to be 'true' or 'false'
Change-Id: I4e089cb606ecf43444b4d567ad63d622f37506ce
2018-01-19 08:59:46 -08:00
Andrea Campanella
e319dc2bca Restricting mastership recheck when role NONE.
Avoids also log pollution.

Reason: This avoids one mastership recheck per instance every minute on unreachable AND unavailable device when role of instance is NONE.
Still treats the corner case where role is NONE and device is still available in the store.

Change-Id: I0bd0be5a9ed491a61cc1dc1e988dcf3a53e33993
2018-01-18 19:09:58 +00:00
Ray Milkey
9c9cde4d4d SONAR Suggestion - protected members in final classes are pointless
Change-Id: Ie34d86aecf181e73867a14864d75e0db8a8f48f3
2018-01-17 00:18:50 +00:00