14270 Commits

Author SHA1 Message Date
Thomas Vachuska
97642361e7 Changing how ONOS_APPS value is used and defaulted; cleaned up cell defs.
Change-Id: Ie134bd61024738609ef1a02237c696438eff6024
2019-03-21 23:38:08 +00:00
Sean Condon
8d338b5d97 Improved error message when device has no more free ports
Change-Id: Ic8a0122621f772408628e924420855b349a41d5c
2019-03-21 20:20:58 +00:00
Ray Milkey
bd508ede5c cfgdef tool modifications to catch variable names that don't match properties
- catch errors in the cfgdef tool and abort compilation if a mismatch
  is seen
- Fix mismatches in the code discovered by the tool

Change-Id: Icd9a15eb9312bba6c2208b0b2a684062fcdc19c3
2019-03-21 19:07:31 +00:00
Ray Milkey
f42f76e955 Handle the case where ONOS_APPS is not defined - needed for Jenkins
Change-Id: I66b08f25ebc9171653ae673ea5c562ecb53bcf8c
2019-03-21 10:04:02 -07:00
Ray Milkey
a79a1113c2 Handle the case where ONOS_APPS is not defined - needed for Jenkins
Change-Id: Ic587ebbb975b7ef285febfffd0e4414db0abc7ab
2019-03-21 09:19:54 -07:00
Ray Milkey
2673aaa4b5 temporary hack to get GUI working with existing cell infrastructure
Change-Id: I65caed2fec5cb6fb3187d32b5690a3c0c11ed199
2019-03-20 10:46:26 -07:00
Sean Condon
ff85fbede3 GUI2 Extract Topology view in to its own library
Change-Id: I45597d0902c99b5b3d606966866cc518011c54a0
2019-03-20 15:54:02 +00:00
Sean Condon
bf7ff4f3fa Change GUI and GUI2 to be apps rather than core features
Change-Id: I862e5bdbccc29fd78716159e168e7a14bc5053e1
2019-03-20 14:48:49 +00:00
jaegonkim
2d0bd6e66a [ONOS-7732] Automating switch workflow: workflow test cli command completeter
Change-Id: I26346c37c3e120b5c22cccc1aa1ca129b6608720
2019-03-20 22:25:17 +09:00
nitinanand
2a5c8fdb40 sample worklet with multiEvent usage
Change-Id: I03f4609714fc1df564cca87223890663788a2acc
2019-03-20 12:51:24 +00:00
mohamedrahilr
63a921cb33 workflow app fixes
Change-Id: Ia3b06b7947671e4e38ca37eb832e6a969ed1e6af
2019-03-20 08:19:47 +00:00
Jian Li
65cb23d676 Add openstack node initialization REST APIs
Change-Id: I82f3bcb4d16577a452fbbafbc70c352d1a495241
2019-03-20 02:17:44 +00:00
Andrea Campanella
0169520552 Change in pattern for port recognition in Cassini Driver
Change-Id: I7651856e0fdf60db9e335ccff98d6f9f04b7613f
2019-03-19 20:42:05 +00:00
Carmelo Cascone
95308287cf Fix pipeline not marked as READY after device reboot
Since Stratum persists pipeline config across reboots, the
GeneralDeviceProvider was marking the device available as the device
had a pipeline config set right after the connection open event, but we
had to wait for the periodic PipeconfWatchdog check to mark the pipeline
as READY. Now we trigger a PipeconfWatchdog check after every device
availability change event.

Change-Id: I11a6f52ff5ea5304aa26dbe39786a25055b828aa
2019-03-19 19:51:43 +00:00
Carmelo Cascone
67a317d0f0 Fix race condition when processing first Update of gNMI Subscribe RPC
We simply update the subscription map before starting the RPC

Change-Id: I0cedea3ef8415e29d021fc7d396d84cb9a2a33ed
2019-03-19 19:51:43 +00:00
Carmelo Cascone
a1cabe50a5 Do not clear the P4Runtime device mirror when devices go offline
Implementations of P4Runtime like Stratum are expected to persist table
entries and other data plane state across reboots.

Change-Id: I4395e9e60b395bfca85c71c9d3bc604a2269a3ce
2019-03-19 19:51:43 +00:00
Andrea Campanella
c4953eb918 Minor fixes derived from OFC ODTN demo
Change-Id: I62afed0000e1a71df7cb0eee0f44b527aef62e4d
2019-03-19 19:00:10 +00:00
Andrea Campanella
02f86c84a0 Fix for propeties that need to have the same name as the used variable.
Enabling rest reply timout to be configured

Change-Id: I4435c1d359a47b64d861c9a1be7ec1008371ba2b
2019-03-19 18:03:10 +00:00
DongRyeol Cha
40259008bd Restart the scheduled task when polling frequency is really changed
The netconf device provider always restart scheduled task
even if polling frequency is not actaully changed.

This patch fixed that restart the scheduled task when polling frequency is really changed.

Change-Id: Ib2175e882bf6a22e7934955020c00b092a13a48f
2019-03-19 04:27:24 +00:00
Andrea Campanella
9da8e72fae Removing OCH singal from intent created from TAPI.
This enables ONOS to compute lambda according to LambdaQuery

Change-Id: I360e2c008eadc5c597374e0d3d49e49b3770ff2e
2019-03-18 12:13:51 -07:00
Jian Li
e519982f27 Fix: do not publish vStats info to Prometheus if it is not activated
Change-Id: I843f1bdd7e737fe642034c54a67bdb528177728c
2019-03-16 17:42:41 +09:00
jaegonkim
fbf6143335 [ONOS-7732] Automating switch workflow: workflow cli command completeter
Change-Id: I226fd243279159af58e2803ff70113168a6b9cf4
2019-03-16 09:38:43 +09:00
Charles Chan
0f7897f917 Route is not populated correctly when next hop moves
When the next hop moves from [1A,1B] to [1A],
there should be a route on 1B pointing to 1A via spines

Change-Id: I817414fb4e9edf29357fdb5e55675537ff5f0cac
(cherry picked from commit 53eae194a8b66287855483359309597e8df2efa9)
2019-03-15 22:28:09 +00:00
Andrea Campanella
70d1e1c924 Fix for NPE in arista Drivers
Change-Id: I460ac6d39636972b39d55e9796efe9f9a5928de9
2019-03-15 05:38:13 +00:00
Ray Milkey
bde9b39d44 Ignore errors coming out of Felix
Change-Id: I655d4b01b8480e469066f7eae742a6dbd0b886c8
2019-03-14 10:48:10 -07:00
Jian Li
2dc37594f2 Fix: lower down the security group logging level
Change-Id: Iffeab7e632b62fb74fa29f85d04b6383bf8712ca
2019-03-14 10:03:26 +00:00
Carmelo Cascone
34d116cbf9 Fix net-trellis-p4-smoke not working with latest stratum_bmv2
- Fix scenario files to use correct deviceId
- More robust liveness check in bmv2.py
- Use different ports for stratum internal server
- Longer switch startup timeout in bmv2.py
- Ignore number of flow rules when checking summary (make scenario
independent of trellis implementation)

Change-Id: I206e5339d2e78ae9a025caa5ec4862a9d4c24871
2019-03-14 06:10:59 +00:00
Carmelo Cascone
b4863b3f40 Fix missing P4Runtime groups because of infinite delete/insert cycle
The fix is simple: when cleaning up inconsistent entries from device,
we update the mirror when the response is received, and not before
sending the request. Otherwise, if delete goes wrong, writes happening
right after reconciliation cycle might find an inconsistent mirror state.

When writing entries (e.g. apply group/flow rule) we keep updating the
mirror before sending the request to handled the case of back-to-back
writes.

Change-Id: I9e1cc5cac3f8746c67e93e2cee17aff78d3f1d7e
2019-03-14 06:10:59 +00:00
Carmelo Cascone
81fcfbeff6 Depend on official gnmi repo instead of fork
No need to maintain a separate fork of gnmi when what we need can be
achieved with a simple Bazel rule

Change-Id: I94ce6f617306e8fb68c44ec2a64743996d3c2f38
2019-03-14 01:43:44 +00:00
DongRyeol Cha
2803d30843 Add ipv6 address supporting for file transfer using scp
Some files's scp does not have supporting for ipv6 address.
So, I have added supporting for ipv6 address using scp.

Change-Id: Ie6db5c6988c708e4cec862f6b671dd64b457a69a
2019-03-13 18:40:15 +00:00
Jian Li
19c51749a1 Fix: do not uninstall group table rules if flag is unset
Change-Id: I1e04cedd97271fdfdc8b0533421c7a5b1e109bc3
2019-03-13 16:10:42 +09:00
Andrea Campanella
b9e491b553 Fix for ADVA ols with TAPI
Change-Id: I91d0002dc67697d394f6a97ed7f97089054f4837
2019-03-13 00:44:42 +00:00
Carmelo Cascone
0e3b623f66 Reduce the chance of apps triggering fake mastership events
The GeneralDeviceProvider works with device IDs with prefix "device:",
which is the same leadership topic prefix used by the Mastership
service. This caused an issue when any app was creating leadership
contests with topic deviceId.toString() (e.g. XConnectManager,
DefaultRoutingHandler, etc), as the resulting leadership events where
picked by the mastership service and propagated, because of the "device:"
prefix.

This patch minimizes the occurrence of such issue by choosing a more
specific leadership topic prefix for the mastership service. However,
the right solution would be to add isolation of leadership contests
between different services/apps.

Change-Id: I333fd9796a66bb4ca04cd2facd337ac57a2947b2
2019-03-13 00:43:28 +00:00
HelloONOS
0854c0427e Add bridge Config at Arista Driver
Change-Id: Iaea2a0641c8d05bfa1d2caca66dc81698650d995
2019-03-12 20:23:17 +00:00
Harshada Chaundkar
14b62381e7 Added REST API call to fetch routes count and routes count by type for Route Service
Change-Id: Ia9a5b269df17805d2f9aab2ca926bf7656168aee
2019-03-12 19:12:29 +00:00
Charles Chan
64a1c8e76e Offload packet processing to another thread
Also update unit tests

Change-Id: Ib94c796083e2d75912f77667d3cfe4ed794694e9
2019-03-12 08:15:22 +00:00
Charles Chan
b87495c31c Disable DHCP relay counters
The use of strong consistent counter creates a huge performance overhead.
The semaphore also prevent parallel processing of DHCP packets.
Moving forward, we should replace this with local counter, CRDT, or other less expensive counters.

Change-Id: I4023ae2b6867a3f3ab3675717ce6e9c396580b19
2019-03-12 08:15:22 +00:00
Sean Condon
ee5d4b9366 GUI2 Minor bug fixes to position of devices
Change-Id: I8fff317ea17a7b9311a2900ace75893b234f5633
2019-03-12 03:13:43 +00:00
Harshada Chaundkar
754701c956 Fixed potential NPE in packet-stats for ipv4 tcp packets
Change-Id: I6b649a689a4e9d7ed1519e7d8f6dd2a4846758ee
2019-03-11 23:22:41 +00:00
Thomas Vachuska
addf6345a3 Added capture of errors during server-side websocket handling.
Change-Id: I71a96aba30a7a232dc5d5f305c5da5a81d7b09d1
2019-03-11 12:50:01 -07:00
Thomas Vachuska
1c8b7abceb Added uptime to stc-warden.
Change-Id: I19acabb6b6b847f706a5a684f94b1fc3ad2b23bd
2019-03-11 12:49:20 -07:00
Sean Condon
ee54576967 GUI2 Handle node additions and removals in Topology view
Change-Id: Ic16fc1325fe338e2136f1cc70febc621342be4f2
2019-03-11 09:44:10 +00:00
jaegonkim
fe1bc06622 [ONOS-7732] Automating switch workflow: workplace cli command completeter
Change-Id: Ibcabd8e861b2506d21929ab0c0625eab132dc3d1
2019-03-09 20:47:18 +09:00
Jordan Halterman
e3de321416 Fix NPE in flow store
Change-Id: I310b9bf45ba7f59c4f5cc96d302ede9b652af623
2019-03-08 14:17:30 -08:00
Carmelo Cascone
cb60f92385 Fix case where multiple stats poller tasks are created for the same device
Change-Id: I5d4602cbf557be458b52983d00c5d670fd3a3f2c
2019-03-08 21:25:34 +00:00
Carmelo Cascone
95dcaa0eb7 Add new gnmi-standalone driver with fake mastership handling
gNMI does not support mastership. This driver allows controlling gNMI
devices without the need of other mastership-oriented protocols (e.g.
P4Runtime).

Change-Id: I300607fbcc99d3f066904a96e55c9cd954d5d0a5
2019-03-08 19:20:51 +00:00
Carmelo Cascone
87c3297b67 Fix stratum-install to support tar files with arbitrary root directory
Change-Id: I825c18fdc0d08cfe58c103e5dbc906f268145960
2019-03-08 06:15:07 +00:00
Carmelo Cascone
62d5c2e033 Allow enabling gRPC message logging for existing channels
Change-Id: Ic7586266e6a264ceeb9b55d7dae0db5e9a34c0c1
2019-03-08 06:15:07 +00:00
Carmelo Cascone
1ae25061fb Add stratum-tofino driver
This patch also introduces a new driver property flag to indicate
whether a P4Runtime target supports default table entries or not.
Stratum targets built against the current version of p4lang/PI do not.

Change-Id: I1fbb57521516bee99057319ed1695cb05b68ee7c
2019-03-08 06:15:07 +00:00
Jordan Halterman
01bf125e77 Match device pattern on start of line in MastershipStore election topics
Change-Id: I2ee7c3596b90d7096ae456269e37f18970d3edf0
2019-03-08 06:15:07 +00:00