14621 Commits

Author SHA1 Message Date
Brian O'Connor
ca05e1fd9d Enable ONOS to be packaged into different profiles
Currently supported profiles:
- (default): builds everything
- minimal: builds ONOS and general device provider
- seba: builds ONOS with OpenFlow and SEBA-related apps
- stratum: builds ONOS with NG-SDN APIs and Stratum drivers
           (P4Runtime, gNMI, gNOI)

Change-Id: I6cdd01cba54e45fc23d60f345b23dd86318cdef9
2020-01-08 08:40:06 -08:00
Sean Condon
a3ad779274 Added back in Bazel tests for gui2-fw-lib and gui2-topo-lib
Also used a named path in typescript for gui2-fw-lib

Change-Id: I7233565e53b9b86e1766228ecc96b21ea6f7499d
2020-01-08 13:11:31 +00:00
pier
59721bfa80 ONOS-8053 bugfix to handle PENDING_REMOVE meter state properly.
* If a meter_stats_reply is received when the meter_state is
PENDING_REMOVE, do not change it to ADDED
* Use a pendingRemoveMeters set to send METER_REMOVED event
just once.

Change-Id: I0c78d6082e0b09aee5b843932d26f81ed6e26c84
2020-01-08 11:05:32 +00:00
Sean Condon
8bba394216 Added --frozen-lockfile to yarn_install in WORKSPACE
As recommended on https://yarnpkg.com/en/docs/cli/install to fix problems in CI

Also upgraded Third Party Products for legacy GUI

Change-Id: I538aff2b111d599c74d3b484af839b52599b3fb2
2020-01-08 11:01:34 +00:00
Sudeep Desai
5013f49f97 Modulation consolidation
Change-Id: I1d7b48ec36250a135afa8624fa8351e3b3fa441e
2020-01-08 16:05:30 +05:30
Boyuan Yan
8b73dcb501 Minor fixed on tapiHelper.py to match Nokia's condition where line-side and client-side may be not mapped all the time.
Change-Id: Icc816755ec54e43374781de533d38f53ddc5409f
2020-01-08 08:39:32 +00:00
Gamze Abaka
61269f836a SEBA-816 Multi-tcont support by OltPipeline
Change-Id: I9df0df7c2c6f41bbb35effc6feef640698d19e08
(cherry picked from commit fe93448daca9013a77fbc1cb3b38b42d8d433437)
2020-01-07 20:58:42 +00:00
Thomas Vachuska
e82b7aa2f3 Added package-info.java to all archetypes; including overlays.
Change-Id: I09482c6309783eae011a51b84ecc19335b2db0b2
2020-01-07 11:41:14 -08:00
Sean Condon
4fff373774 Updating the README to test the build process
Change-Id: I4db415524372602dd609be547801de9d177b45ef
2020-01-07 18:42:34 +00:00
m.rahil
b2e9cd97d0 CLI to display workflow status
Change-Id: I3d269693b97237fad5f69723dec0619de2c45055
2020-01-07 18:26:56 +00:00
TOIDA Yuto
208d8c62ba Fix ONOS-8038: add Matcher.find call before Matcher.group
Matcher.group throws "No Match Found" if it is called before Matcher.find method call.
So this commit add Matcher.find call before Matcher.group call to do actual search in Matcher object.

Change-Id: I53e4ad1bea91662dc245d963f8742bd6774dd207
2020-01-07 18:26:08 +00:00
JieJhih Jhang
fa02e2fea1 Fix notes in opticalUtils.py
Change-Id: I68908d7ab90c4ad409409706ab08a03dc1378778
2020-01-07 17:51:32 +00:00
Sudeep Desai
6f136d4dd7 Flow Rule Programmable consolidation
Change-Id: I469dab2316c7bb1c0881ecf5bb024d14e2fd9310
2020-01-07 17:50:20 +00:00
Carmelo Cascone
da15af8ce3 Drop using BNG attachment IDs in favor or dynamically allocated line IDs
The current implementation of BngProgrammable for fabric.p4 uses
attachment IDs as line IDs, thus forcing apps such as bngc to be aware
of such implementation detail and to manage the allocation of such IDs.
Unfortunately, allocation of IDs is dependent on the device (P4 program)
implementation (e.g., line counter size), and so it should not be left
to apps.

This patch removes the need for attachment IDs at all and instead relies
on a driver-level service to dynamically allocate line IDs based on the
attachment attributes (currently s-tag, c-tag, mac address).

The current implementation of the allocation logic is a trivial one,
i.e. non-distributed and non-optimized.

Change-Id: Ie960936ee750cf565b8de41370085ecf9d49e931
(cherry picked from commit 6aa2a6ea743e8104ee3c62acb7d26acbd1452614)
2020-01-07 17:50:07 +00:00
Clement Cheung
2103989ee1 Fix null pointer exception when deviceId is temporarily absent on startup
Change-Id: I475840a593156b63443cf008e458ad02cf4dc78a
2020-01-07 17:44:37 +00:00
Sacheth Hegde
deccfba4ac Add support for nested NiciraLoad actions
In OVS, for example, the following conntrack action is possible:

ct(commit,zone=44,exec(load:0x5->NXM_NX_CT_MARK[])

The Nicira 'load' action here is nested inside the NiciraCt action.

Change-Id: Ia1e681d2a43d9696ce9f1e8c05eae90322961dbb
2020-01-07 17:33:13 +00:00
DongRyeol Cha
b1177cc1b7 Add new rest api to get ports for all devices
Currently, the onos provides a rest api to get port status.
But if we want to get port status for all devices, we need to call rest api with each device ids.

So, this changes provides a rest api to get ports for all devices.

Change-Id: Iaa123ab341890684b7f0991d8cc75d73cd76c9cb
2020-01-07 17:30:00 +00:00
Maciej Skala
3251a30661 Implement BGP Prefix Listener for BGP Controler
Change-Id: I8cbb43df45104e5cfd7dc7aa7225e5bf99a8ee37
2020-01-07 17:28:54 +00:00
YI-JIE,SYU
20b19b9af4 Fix LearningSwitchSolution File
Revise judgment on lack of ARP protocols

Change-Id: Ie58060751830eb827aabe3c03a0f1a0610fa81a0
2020-01-07 17:27:40 +00:00
HelloONOS
120ba4780d Arista Rest Driver PortStatistics Implement
Change-Id: Ifaf6286b0d54b453d2a4471e1a117a90775bc43a
2020-01-07 17:26:55 +00:00
HelloONOS
acd863601e add bridge configuration at Arista Switch driver
For Arista switch, the following code is required
because the port to be used as OpenFlow bridge should be added.

Change-Id: Id73560b9c9592838ba91329ef652742fb1beb65b
2020-01-07 17:26:36 +00:00
debmaiti
f609198c9f Refactoring and enabling AclWebResourceTest
JIRA ID : ONOS-7961
1. Removed @Ignore and enabled the tests
2. Refactored the code in order to extract json string as seperate files
3. Added additional tests

Change-Id: Ic08128575e7a37a9a7dcdc08a6a8eec0e7e19f68
2020-01-07 17:25:38 +00:00
Simon Buttgereit
3043bb37de Fix Reactive Forwarding with Tagged Hosts
Change-Id: I58b60e8a3f4e574646a93c1028424329eb6a9d49
2020-01-07 17:24:38 +00:00
nitinanand
c8b7025c0e ONOS-7963 workflow invocation trigger on ONOS event
Change-Id: Ie9014bfa77f5514c3580042f9ff2add8e42f25f6
2020-01-07 17:13:22 +00:00
Niraj Dubey
47bde9f2fd Fix [ONOS-6374]: Replace HashMap with ConcurrentHashMap.
OpenFlowMeterProvider throws ClassCastException due to concurrent modification of a HashMap.
Replaced HashMap with ConcurrentHashMap to make it thread safe.

Change-Id: Ie2399b1d2da9d984ecc3cb4a4f8e839a33fb9cfa
2020-01-07 17:10:46 +00:00
Thomas Vachuska
09b1679f4e Fixing archetypes to use 2.2.1-b3 release
Change-Id: Ic2a7a5cb79fc3bf024800b954b01d79dd1656286
2020-01-07 17:01:57 +00:00
Sudeep Desai
f0911a7e44 Power config consolidation Palc
Change-Id: Ia3469ded1822146f61760fc2779baedece8f01b4
2020-01-07 16:16:39 +00:00
Ankur Aggarwal
f363d1ae6c [ONOS-8036] BGP-LS has only partial support for IPv6
- Removed hard-coded Ipv4Address and replaced with the generic
IpAddress wherever necessary
- Added support of AFI = 2 (IPv6) in MPReachNlri and MPUnreachNlri
- Added a new config parameter for IPv6 in BGP Config. This allows
AFI = 2 to be sent in BGP Open messages
- Skipped TLV 1170 and 1173, which were causing exceptions

Change-Id: I76e69021b1d2687754bbf700681070051e347942
2020-01-06 18:36:34 +00:00
Ankur Aggarwal
0abdbcb1ff [ONOS-8051] Device connected via BGP always shown available and reachable
In the command console, when "devices" command is executed, the call is routed
to DeviceManager. The DeviceManager queries the Provider of device periodically,
to check the isReachable status. If isReachable is true, isAvailable is eventually
set to true. Conversely, if isReachable is false, isAvailable is eventually set
to false.

Currently, BgptopologyProvider returns hard-coded "true" in isReachable() call.

This fix solves this by querying the current status from deviceService.
Also, since there is no "isReachable" call in deviceService, isAvailable() is used.

Change-Id: Ie6f7245c22232e0f867346f83b5aadaaf504031e
2020-01-06 18:34:39 +00:00
Sean Condon
6b85be95cf Stop using a global cache for yarn - build fails on Jenkins
Change-Id: Id39fc94315b70c927f87e281101ab761d6444f10
2020-01-05 23:04:18 +00:00
Sean Condon
98b6ddb28a Added native Bazel build to GUI2. Reduced a lot of the unused Angular CLI structures
Reviewers should look at the changes in WORKSPACE, BUILD, BUILD.bazel, README.md files
This is only possible now as rules_nodejs went to 1.0.0 on December 20
gui2 has now been made the entry point (rather than gui2-fw-lib)
No tests or linting are functional yet for Typescript
Each NgModule now has its own BUILD.bazel file with ng_module
gui2-fw-lib is all one module and has been refactored to simplify the directory structure
gui2-topo-lib is also all one module - its directory structure has had 3 layers removed
The big bash script in web/gui2/BUILD has been removed - all is done through ng_module rules
in web/gui2/src/main/webapp/BUILD.bazel and web/gui2/src/main/webapp/app/BUILD.bazel

Change-Id: Ifcfcc23a87be39fe6d6c8324046cc8ebadb90551
2020-01-04 12:17:01 +00:00
Jian Li
e560f673dc Fix: add a timer to harden the k8s node's state checking logic
Change-Id: I76eb3dd22a712299669dac81fb48f2a4937ebecf
2020-01-04 01:26:55 +09:00
Jian Li
8cc1599f11 Fix: harden the post-on-board K8S node state check logic
Change-Id: I04bf5c20c92064c75816b864a51ea6ac3b4eac38
2020-01-04 01:24:46 +09:00
Jian Li
9bb98411bc Fix: add a REST API to update K8S node state to post-on-board
Change-Id: Ia10092a539cbe12d206951f30cc1c3d6debc3860
2020-01-04 01:24:42 +09:00
Jian Li
83eb2a7303 Fix: add JSON consume type to support postOnBoardNode K8S REST API
Change-Id: Ic6992228f92bb8867749237fa7aa9115840c5398
2020-01-04 01:24:38 +09:00
Jian Li
d376e0669d Add new kubernetes node state, add a set of state related REST APIs
Change-Id: I2ac3d9ff26030433e61148e0bf8963016f751f8a
2020-01-04 01:24:31 +09:00
Jakub Harbaczewski
ff37163d95 wavelength get fix
Change-Id: Ieac405b2fa7fa1a27480584481f63023405a0aad
2020-01-03 12:38:40 +01:00
Jian Li
d47c012141 Fix: make kubernetes token string optional for ApiConfig
Change-Id: I679944fb5df3ed71a8af7c12a92aec3c4e36bee6
2019-12-30 16:20:26 +00:00
Jian Li
970c6e5ff1 Fix: do not propagate PORT_REMOVED event if the event has null value
Change-Id: I0cfe520a8910e7aea6b182836deb6dc8469c8e7c
2019-12-24 23:10:24 +09:00
Jian Li
8143c3b746 Fix: double check resource existence at receiving addition event
Change-Id: I80fb2b30201e3e770eb5384ecee2b78b32502936
2019-12-24 17:06:39 +09:00
Jian Li
c51f1872e3 Fix: do not install k8s ns ACL rules if cluster IP has invalid value
Change-Id: I18cc9351f953444d1ec48e0042e1556f0115a8dc
2019-12-24 06:28:24 +00:00
Sean Condon
afe47c2eae Added a Pipeconf View to GUI2 including Table Statistics
Change-Id: Ic043f78d7408a7f96a66735f2493cf0765c01885
2019-12-20 10:48:23 +00:00
Eroshkin Ivan
85f21c8a02 Enabling alarms gathering on Nokia's Transponder
Change-Id: Id1f5a609ed28703624eaf7a70f6183183de69636
2019-12-19 17:18:05 +00:00
Jian Li
77af8f3a87 Support onboard kubernetes nodes through K8S API configuration
Change-Id: I060a443f45ef9c974d030415a30e9376fc82d124
2019-12-18 14:11:56 +09:00
Ivan Eroshkin
2947ed522f Adding Cli command to manage XC on ROADMs
Change-Id: I2088c7b272e18314a5d47c769d2fba658de329c8
2019-12-17 16:49:38 +00:00
Daniele Moro
0cecfe14e0 Fixes to fabric.p4 pipeline
- Fix ethernet matching fields in ACL (dst and src were inverted)
- When doing punt_to_cpu after setting a multicast group clear the mcast_grp metadata field

Change-Id: I456566929b118188a1b2a40ff3f4de4c6c63d5bb
2019-12-16 18:22:43 +00:00
Jian Li
dad2343d07 Refactor k8s-node and k8s-networking command line interfaces
Change-Id: I1eb20ccea5238893a1c58e7faeb4c3a06accd2a9
2019-12-16 22:31:52 +09:00
Jian Li
0ad0c55c06 Bump up jackson deps version to 2.10.0 with updated snakeyaml deps
Change-Id: I7c1b11abad0872d05321869a4221b3907b2aa155
2019-12-16 22:26:21 +09:00
alessio
2f72af4072 Alignment of the generated flow rule format to the format used by the intent framework for OpticalConnectivityIntent.
Patch 2: checkstyle.

Change-Id: I133459274d37df5c74f8599d382a3370b26ae640
2019-12-13 15:49:03 +00:00
Jian Li
0ecf129a1d Bump up fabric8 kubernetes client deps 4.6.4
Change-Id: I1cb974c2bb34ea3991f405d74d746cf5faf715ff
2019-12-13 15:42:43 +09:00