1594 Commits

Author SHA1 Message Date
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
Andrea Campanella
e81e941ae3 [ONOS-7377] Fix: Removing Config Factory only if last element in cluster
Change-Id: Ib9f627891b8e862dc96866d9f40d4f1694f9b3b4
2018-01-16 18:10:26 +00:00
Rafał Szalecki
9fb87f665b Remove device from deviceLocalStatus after the device was removed from the store.
Change-Id: I98ac16a9ce7baf2676d7f8f860689a6ece4b800f
2018-01-16 18:05:06 +00:00
Jordan Halterman
3c65d1bb24 [ONOS-7350] Add ISSU HA/rollback test scenario
Change-Id: I8c1952480cd429d40c77db2e66d16ace27948148
2018-01-10 23:14:36 +00:00
Ray Milkey
39f78b6f5a Remove Intent constructor APIs deprecated in 1.9.1
Change-Id: Ib88ee534174882cb135bba70a6cfc86747a0c193
2018-01-10 17:51:04 +00:00
ONOS Jenkins User
45d340c839 Starting snapshot 1.13.0-SNAPSHOT 2018-01-09 01:56:13 +00:00
ONOS Jenkins User
32ebb5add8 Tagging 1.13.0-b8 2018-01-09 01:54:28 +00:00
Pier Luigi
bdcd967260 Implements policer-meter-mapping [ONOS-5867]
Changes
- Adds Policer config behavior and its implementation
- Implements id mapping
- Adds tests for OpenFlowPolicerConfig
- Adds free id api to MeterService and MeterStore
- Improves test for MeterStore

Change-Id: Ibb47375430e253131d9d9c8a60e61023ee6c8225
2018-01-05 23:12:28 +00:00
Charles Chan
479337514b Dual-homing probing improvements
(1) Active probing mechanism in the following two scenarios
    (1-1) Probe all ports on the pair device within the same vlan (excluding the pair port) when the 1st location of a host is learnt
    (1-2) Probe again when a device/port goes down and comes up again
    * Introduce HostLocationProvingService
        - DISCOVER mode: discover potential new locations
        - VERIFY mode: verify old locations
    * Can be enabled/disabled via component config
    * Improve HostHandlerTest to test the probing behavior

(2) Fix an issue that redirection flow doesn't get installed after device re-connects

(3) Temporarily fix a race condition in HostHandler by adding a little bit delay

Change-Id: I33d3fe94a6ca491a88b8e06f65bef11447ead0bf
2017-12-19 16:25:59 -08:00
Andrea Campanella
8bcd5863ff [ONOS-7311] and [ONOS-7197] Update ONOS to support most recent version of BMv2 and PI
Change-Id: Ie69cfe1946f3c9241dc7f59a64bd40005a063931
2017-12-12 14:03:36 -08:00
ONOS Jenkins User
61881df1ee Starting snapshot 1.13.0-SNAPSHOT 2017-12-12 21:19:45 +00:00
ONOS Jenkins User
d22dccc27f Tagging 1.13.0-b7 2017-12-12 21:18:01 +00:00
ONOS Jenkins User
4bf9e3a520 Starting snapshot 1.13.0-SNAPSHOT 2017-12-12 18:46:22 +00:00
ONOS Jenkins User
168ac92b8d Tagging 1.13.0-b6 2017-12-12 18:44:15 +00:00
ONOS Jenkins User
0e78e27f0c Starting snapshot 1.13.0-SNAPSHOT 2017-12-12 03:27:00 +00:00
ONOS Jenkins User
2a7d833cab Tagging 1.13.0-b5 2017-12-12 03:25:23 +00:00
ONOS Jenkins User
c53a15f933 Starting snapshot 1.13.0-SNAPSHOT 2017-12-11 20:43:30 +00:00
ONOS Jenkins User
d06da9e33c Tagging 1.13.0-b3 2017-12-11 20:41:44 +00:00
ONOS Jenkins User
716484c58c Starting snapshot 1.13.0-SNAPSHOT 2017-12-09 03:41:19 +00:00
ONOS Jenkins User
6a6ac1d5a0 Tagging 1.13.0-b1 2017-12-09 03:39:39 +00:00
ONOS Jenkins User
a57a814230 Starting snapshot 1.13.0-SNAPSHOT 2017-12-09 00:57:30 +00:00
ONOS Jenkins User
8977cedde7 Tagging 1.13.0-b0 2017-12-09 00:55:39 +00:00
Saurav Das
f14d9ef158 Fix for empty flooding groups due to bucket add/remove commands being reordered, and
triggered by port up/down events very close to each other.

Change-Id: Ibbd7cc6eb6df35396175619d95439acd6da904b8
2017-12-05 18:35:20 -08:00
Ray Milkey
fa89f2a641 Fix NPE in PacketManager
This happens when a device event comes in when there
is no device service available.

Change-Id: I50ea44da433979ef0a3a238b22d295e671849ff4
2017-12-01 20:47:55 +00:00
Jordan Halterman
bc0308fe4a [ONOS-7243] Check for existing device master before attempting to acquire mastership to mark device offline
Change-Id: I11c1b173d2bb7d866889d0d6d42b9e7e702c2e79
2017-12-01 20:02:23 +00:00
Andrea Campanella
5a3c09c9b9 [ONOS-7279] Fix for illegal state exception when deactivating driver providers
Change-Id: I9a8c16e33cac40b91c2b6f405e66f94bcdf5e0e0
2017-12-01 13:57:48 +01:00
Charles Chan
f32d854fe4 Fix CORD-2326 Dual home host loses one of its location when its name being changed in GUI
Change-Id: I9e5500cca4aeda66ad6cef781d5552f9ec0609ec
2017-11-30 22:08:17 +00:00
Carmelo Cascone
326ad2dd29 ONOS-7050 Refactored PI translation service and store
The translation store is now able to maintain mappings between
translated entities and specific instances of a PI entry in the network
(i.e. applied to a device).

The translation service has been refactored to allow users to
learn and forget translated entities.

The refactoring of the P4Runtime driver using this service will be
submitted separatelly.

Change-Id: Iaafd87d90232514853ca0dea0115dbae4f6e7886
2017-11-30 09:40:40 -08:00
Andrea Campanella
14e196dbcd [ONOS-6810] Implement Mastership handling in general DeviceProvider
Change-Id: I14b706d364cf5124da248230fbcda65d0bd284ce
2017-11-29 10:14:31 +01:00
Palash Kala
a06a61694c ONOS-6950 Annotate device through network configuration
Change-Id: I39d5ca39667bb1478a090408ff3c1af33220a0b2
2017-11-28 18:02:40 +00:00
Carmelo Cascone
1a7e4f9b9a ONOS-7050 First stab at PI translation store
Change-Id: I7f48802b1f5d70fbe3e6cead2800855de18b9207
2017-11-23 13:38:21 +00:00
Charles Chan
593acf90c8 Correctly persists the old value in TestConsistentMap by deep cloning the entry
In addition, inject TestApplicationId into DistributedMeterStore serializer when running MeterManagerTest

Change-Id: I8dcb4b2953a8d7e0fa1e5d765c859cde31d7633b
2017-11-22 22:00:56 +00:00
Yi Tseng
dbe0560f0d [ONOS-7236] Supports simple IPv4 routing on fabric.p4
Change-Id: Ie92b26361b1d646491bd382f698c0f8f61a058a1
2017-11-21 17:08:30 -08:00
Ray Milkey
a09f87f02b Starting snapshot 1.13.0-SNAPSHOT
Change-Id: Ib3360118c42aa760632ff80537d585865813060f
2017-11-21 09:38:31 -08:00
Jordan Halterman
9416aea4f0 Check for in-progress upgrade before attempting to change NONE role in DeviceManager
Change-Id: I3f8ef2ecb5ec57685fdb687bfcb65bd774e031ce
2017-11-20 17:33:00 +00:00
Ray Milkey
2c142c5248 Fix race condition - if the device manager is not ready when a packet arrives, drop it rather than NPE
Change-Id: I601b4ce1d449b169059a3390441dcfa58b800db3
2017-11-17 01:17:13 +00:00
Carmelo Cascone
39c28ca503 Moved service PI classes/interfaces to appropriate package
Change-Id: I44a4aba848fd758a78a28eb484b7f579e3f22d08
2017-11-16 18:57:38 +00:00
Ray Milkey
8320088c69 Unit tests for Cluster Metadata Manager
Change-Id: I81de294844414778798645b95b5aaa18060e4c44
2017-11-15 22:42:24 +00:00
Antonio Marsico
4f68ec98fd ONOS-6613 Non-disruptive intent reallocation
Change-Id: I5d051c20402a226ad540b8bc08695b602ff75273
2017-11-15 20:07:15 +01:00
Ray Milkey
334e941e9c remove references to BMV2 from pom files
Change-Id: I2f590f62e2cda50de4eecd27d1ae933953c8ee81
2017-11-14 19:37:16 +00:00
Jordan Halterman
21a74da386 [ONOS-7213] Add serializer for cluster metadata Partitions.
Change-Id: I9344288b881f9e50feb8901f560e1a0a4b53392d
2017-11-14 19:27:13 +00:00
Jordan Halterman
ba1bbaf1fa [ONOS-7214] Delete partition data after cluster reconfiguration.
Change-Id: Ifad2b282c554829374d6623904bb792f2b70c393
2017-11-14 19:00:39 +00:00
Ray Milkey
e3708c71a8 ONOS-7219 - don't crash if there is no metadata file
Change-Id: Ibe000a5a51e037d1effb7b1e0b580d8dcc02f00b
2017-11-14 01:22:21 +00:00
Carmelo Cascone
87892e25d1 ONOS-7066 ONOS-7067 PI abstractions refactoring and P4Info model parser
Includes changes previously reviewed in #15607, #15877, and #15955.

Change-Id: Ie2ff62e415f2099832ebfe05961a879b7b188fc3
2017-11-13 16:15:17 -08:00