4428 Commits

Author SHA1 Message Date
Laszlo Papp
62c3e07f91 Order the annotation output
There is a slight worry of backward compatibility, however, Set does not
guarantee the order anyway. So, the northbound interface users could not
rely on any ordering. This means that making the order deterministic and
easily human readable just improves the situation without much
overhead.

Change-Id: I8a4de3ecac87a7499a107ad12c7a3038332868cd
2018-01-19 18:58:56 +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
74e5913ec3 Sonar suggestions - fixes to potential null pointer dereferences
Change-Id: I4e350a9d72a9322971d5d4f831f1bdf167986b87
2018-01-18 19:01:54 +00:00
Jordan Halterman
1315d3e9f6 [ONOS-7381] Reset phi accrual failure detectors when nodes are re-activated
Change-Id: I283ef9daca8dedcc1260a7e5299f559ee7a1c6e0
2018-01-17 20:04:02 +00:00
Jordan Halterman
ce336f727d [ONOS-7382] Ensure flow tables are removed when last entry is removed
Change-Id: I967af049022faaf448ff474d88b9a707a6feb538
2018-01-17 17:28:31 +00:00
jaegonkim
73c21bd631 [ONOS-7372] GossipDeviceStore cannot do 'mark off line' for a removed device in a controller recovered from failure
Change-Id: If566cfa6af376b2792cd8b978189a885e28ec89c
2018-01-17 00:21:29 +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
Ray Milkey
3e0e92e254 SONAR suggestion - don't ignore stream read() return value
Change-Id: I470d7d5a382f43ae5c6e5e577f23fd69517a69a9
2018-01-17 00:17:43 +00:00
Laszlo Papp
7390b5cf8a Expose the port stats annotations to REST
Change-Id: I0c059e5e1df6b3d65f8196e16da7235dbe41bcd5
2018-01-16 23:21:02 +00:00
Jordan Halterman
83b1d93463 [ONOS-7373] Ensure Netty channels are closed on send exceptions
Change-Id: If543c039f83ef4b6cf5e7f51a01d35552350c001
2018-01-16 21:25:34 +00:00
Jordan Halterman
111aab7f82 Add minimum timeout for Netty messages
Change-Id: I18801cbad57f05d2f3add5a0c3705e0d6e89ae05
2018-01-16 21:25:15 +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
Laszlo Papp
7cf6037b2c Expose optical properties
Change-Id: I30714563a6a02e5c4c777b759968251625ec4969
2018-01-12 18:58:24 +00:00
Jordan Halterman
a3f1611490 [ONOS-7365] Fix NPE in ECM peersSupplier to avoid exceptions when rebooting container
Change-Id: I9d746c3f8620266ba734ad6f8c32e471e813b06e
2018-01-12 00:33:27 +00:00
Jordan Halterman
e720ddfdd4 [ONOS-7363] Isolate replica info to a single version for isolation of primary-backup protocols
Change-Id: I780a949a2bc924e114d0e25fca1888d14c9924ad
2018-01-11 00:45:58 +00:00
Jordan Halterman
f5f4094291 [ONOS-7352] Activate applications locally when restoring old version after upgrade failure
Change-Id: I9eeff0fc6dbfa6b82c074a0e3a8ca1b4e0fa1227
2018-01-11 00:26:52 +00:00
Jordan Halterman
3c65d1bb24 [ONOS-7350] Add ISSU HA/rollback test scenario
Change-Id: I8c1952480cd429d40c77db2e66d16ace27948148
2018-01-10 23:14:36 +00:00
Deepa Vadireddy
9719eb0239 ONOS-6955
onos-app does not reinstall apps correctly

Change-Id: I79e5172769d2aecc50ecdcbe60a86f49a5c17fef
2018-01-10 23:12:36 +00:00
Jordan Halterman
1d4d189e1e Add warnings to KryoNamespaces to avoid reordering serializable types.
Change-Id: I06f31e4cca46aa2e82dbc894903de23e05a3d7c8
2018-01-10 23:11:12 +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
Andrea Campanella
fa40ca2636 Adding GroupService Adapter for Tests
Change-Id: I058a26f0f5657cee8c5aeb52d989d2d6c0dc1190
2018-01-10 17:27:34 +00:00
Jordan Halterman
ef92f19c6c Use failure detection for Netty messages to improve ability to adapt to changing network conditions
Change-Id: I2928072ffd9c662e1817d67453f19626681c0aff
2018-01-09 21:19:40 +00:00
Thomas Vachuska
914b0b1b2e Fixed the ECFlowRuleStore to support MODIFY flow rule operations.
Change-Id: If1ee4b1d2af120535b21b0914ec30aa8930539d1
2018-01-09 21:15:28 +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
Thomas Vachuska
71026b2d0a Swapping the default flow rule store to be the ECM-based implementation.
Change-Id: I6dd706ea1bc9135f79dccc9e2d587f82153c62c0
2018-01-09 00:51:07 +00:00
Pier Luigi
256d92ba2c [ONOS-7208] Improves policer with rate type
Change-Id: Idf20fce19bfc071193f55609d3bb7297d2dee479
2018-01-05 23:13:23 +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
Andreas Gilbert
5e95961d49 [ONOS-7333] adapted REST API for bitwise match on TCP/UDP/SCTP source/destination port (flow)
Change-Id: I7f79b22135fbb1663b7757e098ee91f088e243a4
2017-12-22 16:29:24 +00:00
Jordan Halterman
153dbd5b7f Ensure TCP_NODELAY is properly configured on Netty channels
Change-Id: I21ba4f048d609a56ceff4b4ae2cb0c02e6d57bf2
2017-12-21 20:21:51 +00:00
Jordan Halterman
464145dcc5 Increase default primitive operation timeout to 15 seconds
Change-Id: Ib2662d0af1a7d50fc93c9b9111d78e21f5a2e1aa
2017-12-21 01:32:09 +00:00
Jordan Halterman
a1ccbc36fe Convert leadership events directly to mastership events to avoid inconsistencies when building RoleInfo from underlying leadership store
Change-Id: Idfc2b58bb0d90f2a775b02d998ad24b65f076f0b
2017-12-20 18:32:31 +00:00
Jordan Halterman
f9f5563a87 [ONOS-7332] Ensure DEVICE_ADDED events are not skipped after device creation on a non-master node
Change-Id: I9a6ee21833d89db16fab6b13bb946746e381d36c
2017-12-20 18:32:27 +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
Ray Milkey
b68bbbc5ac Sonar suggestion - use a secure random number generator
Change-Id: I28075845555bcbc384a49e07353b3192c413b8f7
2017-12-19 17:58:54 +00:00
Mehmed Mustafa
3e269df520 Initial P4Runtime unit tests
Change-Id: I167fdd005f20ac8df00dd6e252f928896a4809c4
2017-12-17 10:59:23 -08:00
Ray Milkey
3004c7d2d1 Improve flow objectives data objects code coverage
- enhance some APIs to return the right type of builder to enhance fluent interface
- override the copy() methods to return the proper types so it can be used in a fluent manner
- enhance unit tests to improve coverage on objective types
- add unit tests for objective context

Change-Id: I6beb7027fe5eb9929a8a4fea147444d9930c10ac
2017-12-14 22:02:31 +00: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
Jordan Halterman
1cf233c1fe Timeout local messages in NettyMessagingManager to avoid hanging when receivers are blocked on external calls.
Change-Id: Ic104a21317f4223921f1acba231e3f97039c2f2e
2017-12-12 19:22:26 +00:00
Jordan Halterman
e9467fcf52 Upgrade to Atomix 2.0.12
Change-Id: I92f41fbd6909f082ed9eb5ffeae47144969ed987
2017-12-12 19:22:19 +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
Charles Chan
8277b6b197 Dual-homing probing improvements
* Extend timeout from 1500 to 3000 ms (including 1000 ms initial delay)
* Use unicast instread of multicast probe for IPv6 host

Change-Id: I6aa9d9b45502e06252596417c685fda6be28fdbb
2017-12-11 15:08:02 -08:00
ONOS Jenkins User
c53a15f933 Starting snapshot 1.13.0-SNAPSHOT 2017-12-11 20:43:30 +00:00