11794 Commits

Author SHA1 Message Date
Kalhee Kim
495c9b2fa9 [CORD-2318] Allow v6 alternative dhcp server for default and indirect dhcp server
Change-Id: Ief4027a7528db7b4e3058fce369b3e1ddc214e92
2018-01-19 13:20:13 -08:00
Kalhee Kim
ea4b6c2649 [CORD-2226] Dhcp6 Relay uses to store dhcp record for LeaseQuery
Change-Id: Ib3baadb38e3f5f6ebe6efc884660fe0c77cfe689
2018-01-19 13:12:04 -08:00
Laszlo Papp
8e8ff057aa Use USE_FREQ for port stats
Change-Id: I797c521ed722dde0fd9fa6cab930aef2349aecbc
2018-01-19 19:42:10 +00:00
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
Saurav Das
45f4815be0 Take down edge ports on a leaf switch when all uplinks are gone
- Bug fix for case when all uplinks are gone, but dual-homed host continues to send packets to switch;
  We now administratively take down the host port to force the host to use the other leaf in the pair.
- Restructured SR manager by creating a LinkHandler
- fixed/added some log messages

Change-Id: I3722cd364dc8798b16891519bec165627e92bd87
2018-01-19 18:30:10 +00:00
Ray Milkey
7b332f168f SONAR suggestion - possible NPE if date is not set
Change-Id: I35a58ad7a5f82250fa56f49cdca4a22b437ea202
2018-01-19 18:23:04 +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
Pier Luigi
325c7575fa Fix SONAR warnings in CORSA pipelines
Change-Id: I0137d63f6b6154a836df4a23317f6451debc2353
2018-01-18 19:30:33 +01:00
Andrea Campanella
37d1062be9 T3: Handling null or offline device
Change-Id: Ic93f2844263fea1874b8ff1d2c5f0bc835adcb64
(cherry picked from commit 63a0ac99fedb017a6450c4484620ac29b0462dee)
2018-01-18 17:30:21 +00:00
Andrea Campanella
2bc55dd335 Fix for T3 test paths
Change-Id: I1ab45904f360349abaa5489c9ca89a5d1a69c82e
(cherry picked from commit d5aa3416e53c2ffd1e11faad23d9b2567f2a21fd)
2018-01-18 17:15:36 +00:00
Thomas Vachuska
3ed7585479 Adding an error trap for the web-socket onClose handler.
Change-Id: I9d286ea8f929ac71f7e55e46cb1873ffda40838d
(cherry picked from commit c7e009a526e44d47cd60a2d858d696efcaa69af1)
2018-01-18 16:11:56 +00:00
Thomas Vachuska
b5a7fd62f8 Fixing geant topo script.
Change-Id: If41b8fad9cf27988688ba79faf007b578d0a2a31
2018-01-18 01:03:11 +00:00
Carmelo Cascone
f11513d1bc Various improvements to P4 dev env
- Better handling of BMv2 crashes in bmv2.py (with watchdog and logging)
- bm-* commands for easy access to BMv2 log, CLI, etc

Change-Id: I1c79acda641171566d8e1162442c7f377bb273fe
2018-01-18 00:59:26 +00:00
Anastasia Kollia
dbd74577b3 This is a language bundle for ONOS -Greek translations
Change-Id: If163a266a6ed26537e117e3e8a04cda0259588b1
2018-01-17 21:19:10 +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
Andrea Campanella
01e886eb36 [CORD-2432][CORD-2431] Initial t3 implementation
Change-Id: I1ed421f82c234bb006ed2cefefea53d773f1efc9
2018-01-17 10:37:40 -08:00
Andreas Pantelopoulos
161ce33e40 Fixed VLAN used for l2 intf groups of pseudowires
Change-Id: Ic1af6dfc2b581fb3194f7778e6c7b69d6b85d8a4
2018-01-17 18:25:14 +00:00
Andreas Pantelopoulos
c41ceb9276 Minor update in PW configuration to handle updates better
Change-Id: I055592f8586b3b49539e87572d94f6af445003aa
2018-01-17 18:24:58 +00:00
Ray Milkey
a7e6692498 Update onos buck version
Change-Id: I226da5e81a4fb9d613c34efbe0c1ce9a8df989c0
2018-01-17 18:21:46 +00:00
Sean Condon
6a2e8fa364 Adding a bucklet to compile XSD in to Java
Change-Id: I760ad7a5c926ee65d7b922bd337f9e3abb1339a7
2018-01-17 18:02:06 +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
Ray Milkey
0e44012994 Fix stack trace when encountering a checkstyle error
Change-Id: If1b7edd9aaf1779251b339dbef254fcc1b0e4690
2018-01-17 15:17:55 +00:00
Pier Luigi
d008dbeb7f [CORD-2533] UnsupportedOperationException in OFDPA pipeliner
Rationale: appkryo returns immutable lists serializable
which do not support removeIf and addAll methods

Change-Id: I25f7f818677d78cad65122f476702f9e194fd620
2018-01-17 13:57:18 +01:00
Pier Luigi
63edd93b14 [CORD-2532] IllegalArgumentException in OFDPA pipeliner
Rationale: PW transit groups need to be filtered out
when retry hash and bucket correction happen (if mpls
ecmp is not supported)

Change-Id: I162ddb3d4d8760777b0cbd5bf250d6fcef8302df
2018-01-17 13:47:58 +01:00
Pier Luigi
07532abd36 [CORD-2531] Missing flows and multicast groups
The rationale for this change is: unhandled exceptions
prevent Runnable to be scheduled in future.
We need to protect the body of runnable.

Related to [CORD-2532] and [CORD-2533].

In the pipeliner we use checkers and groups listener
to get notification about groups. The error scenario:
unhandled exception in the context of a group checker
will kill the checker. We create a multicast group, which
requires firstly a l2interfacegroup. The latter has been
already created in the past. No notification from groups
and no checker -> failure. Multicast group is not created
and forwarding objective in pending (forever).

Potentially, it can fix other errors scenario.

Change-Id: I6ea0548c112002b9ce415103891dc01431bc1dc8
2018-01-17 13:19:51 +01:00
Laszlo Papp
8596fde581 Fix the JIRA ticket number in a comment
Also, abstract is implicit.

Change-Id: Ia3122058a9ff988dfa71214c922be67eb430e65c
2018-01-17 10:08:14 +00:00
jaegonkim
7b77f71246 [ONOS-7374] OvsdbBridges obtained by DefaultOvsdbClient.getBridges() do not have controller information
Change-Id: I74640e991940e1b63e34c95512466e0807d33271
2018-01-17 00:22:19 +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
57add21277 Sonar suggestion - null pointer check had the wrong boolean operator
Change-Id: I7db12414f4c04694067c69d7a949d10ae740efbd
2018-01-17 00:18:00 +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
Thomas Vachuska
4a76f37855 Fixed app category for live-compile YANG models.
Change-Id: I599f252253d54b0d2a871c5485da347419c6e0a0
2018-01-16 23:31:17 +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
Ray Milkey
d6c4280f5e Sonar suggestion - don't lock on a field that is being modified
This code could also throw an NPE if called at the wrong time.
Fixed by saving the value to lock on before saving the new value.

Change-Id: I6a7570c00135d7cff31f3429af1067f4228e5189
2018-01-16 21:11:23 +00:00
Ray Milkey
d4439e67ea Sonar suggestion - don't lock on a potentially shared Object
Long values can be pooled and result in unwanted locking dependencies.
Created a specific unshared lock object.

Change-Id: Icd0035b5d27d564c9ac2f477eff9382b51d06edf
2018-01-16 21:10:19 +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
Laszlo Papp
58174814a8 Do not collect flow and port stats if unsupported
Change-Id: I8dd175803c64e2cafa57b7cbf8b9c268a6391739
2018-01-16 18:09:19 +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
73f9aeaa11 Avoid division by zero
Nothing stops an OF agent to return zero for lambda values and ONOS
probably ought to not crash then.

One use case for this is when only one direction is supported on a port,
for example tx. Unfortunately, the openflow specification does not
separate the directions into different properties, so the agent
implementation has to return some frequency value for rx in this case
even if only the tx direction is supported. However, anything non-zero
would probably be untruthful as it would indicate valid reading to the
end user.

Even zero will be problematic for unsupported power reading in a
direction as 0 dBm is a valid value, but not sure how to deal with any
better.

Change-Id: I2597bd7d577d9c2e1a3b44421fe505b8b3b6cc92
2018-01-15 19:23:45 +00:00
Carmelo Cascone
b7e618d43d Updated script to build P4 VM
Among other things, build now is not based on the upstream version of
onos-setup-p4-dev, but on the local one.

Change-Id: I270a324152a9349d6a9989aa8b5a38b45e1856d9
2018-01-14 18:21:06 +00:00
Ray Milkey
302405e044 Obey Java package file naming rules
Change-Id: Ia0522beade3a8869e0495870425e7fe359ad474e
2018-01-14 11:41:38 +00:00
Manjunath Vanaraj
59ad65730a [ONOS-7334] Using Cache Loader to remove stale entries in p4runtime
Change-Id: Ieead6e199faf23f5fa316516adab659d3e192950
2018-01-13 02:05:59 +00:00
Andrea Campanella
c1ecdd030b [ONOS-7371] Fix General Device provider NPE when disconnecting device after netcfg remove
Change-Id: I07608b46a73888a03dabf55bc0fd8ce2926700e5
2018-01-13 02:04:33 +00:00
Brian O'Connor
f3735654e3 Updating onos-setup-p4-dev to support gNMI
- Adding gNMI dependencies
- Updating PI and BMv2 to build with sysrepo support
- Building simple_switch_grpc with Thrift server

Change-Id: Ida69d80353652174b0bc61a16b6436bf78a2d194
2018-01-13 00:38:27 +00:00
Laszlo Papp
9dfb5129b2 Use port stats prop from OF 1.4
Change-Id: I8b4bb7dc7f0f77014e67c81f5e73e2afb50664ef
2018-01-12 21:11:14 +00:00
Laszlo Papp
7cf6037b2c Expose optical properties
Change-Id: I30714563a6a02e5c4c777b759968251625ec4969
2018-01-12 18:58:24 +00:00