30 Commits

Author SHA1 Message Date
pierventre
69db90c26e [SDFAB-1197] First stab to update ONOS to py3
Update has been performed only on the scripts and the
executables strictly necessary for the following use cases:

- Build (including Intellij)
- Tests (including Intellij)
- Docker build (including dev and yourkit)
- Upload snapshot (including local)
- Release

Finally, fix the ability to run ONOS using onos-local targets,
stc and docker stc (aka up4 stc env). Last but not least, updated
the azul image to a newer one which exports also the PYTHONENCODING

Change-Id: Ie96f3a9c76dbba83b1fc3896a372f1045d3d7ccc
2022-07-29 13:09:20 +02:00
Daniele Moro
27ccd97a9f curl in onos-cfg wants uppercase post as parameter
Change-Id: Ief206ef3029baff98d1c91255044baf2d3543644
(cherry picked from commit 782e154be0edcb018cdb64e1a55219d5081a095b)
2022-02-15 22:22:05 +00:00
pierventre
095ec1e20e Improve onos-diagnostics-k8s for a better integration with tost
Change-Id: I00c4b46e0eff5d649ab3e06455a369b77676312d
2020-10-02 13:59:32 +00:00
pier
724037b5fd [AETHER-77] onos-diagnostics-k8s
- Adds onos-diagnostics-k8s
- Introduces profile abstraction to make some cmds optional
- Refactors onos-diagnostics to make use of the profiles
- Optimizes T3_OFFLINE profile

Change-Id: I615f03971018526b174894b39b4255e6f9ce4e3e
2020-06-27 12:45:11 +02:00
Charles Chan
9797ebbdc1 Phased recovery
- Implemented a set of CLI commands
    - Enable/disable group of ports
    - List recovery phase of each device
    - Force a specific device to enter given phase
- Return CompletableFuture in RRP
- Introduce completeAfter method in Tools
- Introduce submit method in PredictableExecutor which returns a CompletableFuture

Change-Id: I60b0fb7b67e392b33b52d908d2b53f7acbddc565
2020-06-19 06:49:23 +00:00
Seyeon Jeong
8d3cad2236 [AETHER-76] Impelentation of a new Trellis Troubleshoot Tool (T3) for offline mode
- For the performance improvement, T3 offline mode uses snapshots of the network states
called Network Information Base (NIB) instead of runtime interactions with ONOS core
during troubleshooting a Trellis system.
- Partially tested with some mininet topos for trellis
(https://github.com/opennetworkinglab/routing/tree/master/trellis).
- Usage instruction docs (https://docs.trellisfabric.org/troubleshooting.html).

Change-Id: Ice608f77aa96bfbcadfff34991c4a1b6d93125b6
(cherry picked from commit eaa6329aba67c2577fdca7d3ddf230611e82f9f7)
2020-06-19 04:38:39 +00:00
Harshada Chaundkar
b42abd44bf Removing flow modification during sink/source addition/removal.
Changes:
- fwd objectives are pushed only the first time for a given device
- fwd objectives are removed only if the dev is no more serving the group
- mac/vlan filt objectives are pushed only the first time for a given device
- vlan filt objectives are pushed only the first time for a given cpoint
- filt objectives are purged upon device, link and edge port failures
- adds sr-filt-mcast to dump the installed filt obj
- updates onos-diags

Change-Id: I802ebec7e160486fea9ad4bf53aca36a2b1c7146
2020-03-26 16:05:11 +01:00
Seyeon Jeong
80a62463ab Provide a map between all devices and their driver names
- Introduce a new Java API in DriverService
- Implement a new CLI command device-drivers that dumps all devices and their driver names or a driver name of a device
- Include this CLI command as part of onos-diags

Change-Id: I978690e6af6c00dbfc09259b50449779b1167754
(cherry picked from commit dfaf4622e00256a8063ec4f12765381f7290a476)
2020-03-25 02:12:42 +00:00
Ruchi Sahota
ef0761c211 Route reprogamming using group substitution during next hop movement
Change-Id: Idf8362dac522722ca67747e245bfd836e6ee6292
2019-04-10 14:53:49 -07:00
Charles Chan
dc77af5a4d Update scr command in onos-diag for Karaf 4.x
Change-Id: I9652da403cf094777aaafa661c5265c3b3278c14
2019-02-14 19:37:15 +00:00
Charles Chan
3fe60be09c Update onos-diagnostics to include the latest SR commands
Change-Id: Ie478ed8d04a467fc6f112c358810b95d1a7f5dcc
2018-10-26 22:56:37 +00:00
Thomas Vachuska
67484d9008 Added RBAC for REST APIs.
- admin role required for POST, PUT, DELETE & PATCH
- viewer role required for all other requests
- cleaned up all web.xml files for consistency and correctness

Change-Id: I33bad5cec0fb0f4285eed84173025b0a107b5aec
2018-07-17 12:10:00 -07:00
Pier
b185858b6f Add maps and sr-mcast-role commands
Change-Id: Ib557485aa1ce8d5b49b5af1beab7320230e564e3
2018-05-09 19:22:34 +02:00
Thomas Vachuska
1b083cd542 Fixed onos-log-query to properly exclude stack traces and merge logs.
Change-Id: Idd3b915a8dc4c75a0da03445d759753450f9fe25
(cherry picked from commit bfcc57bb75394f9d4ea78ffa6046ce6cbd147fac)
2018-04-26 03:35:18 +00:00
Thomas Vachuska
bf5d1fec8d Customer bug-fixes:
Rolling back the server-side preference setting for GUI
Fixing onos-log-query
Closing UiWebSocket on non-auth message detection

Change-Id: Icf9155668643bd0fcb2e87807364e7304ce21d53
2018-04-26 00:06:50 +00:00
Thomas Vachuska
fe7a75e1c1 Providing a tool to stitch and filter ONOS log files collected via onos-diagnostics tool.
Change-Id: Ib11a15cdc446662f46c376b51af7e5b0d999b605
2018-04-25 12:07:03 -07:00
Charles Chan
8b7df41a28 Add obj-queues into onos-diagnostics
Change-Id: I215c7030450aa75ebb732f4ee81ec75faa65e18c
2018-04-24 17:32:33 +00:00
Charles Chan
8bc75ee52b Implement sr-should-program command
Change-Id: Ie7da6c83b1f432c5f84a13712d0a1be106733c6a
2018-04-19 22:31:33 +00:00
Pier
954b368077 Improve onos-diagnostics adding sr-mcast-leader
Change-Id: I57e058956a2fd8c4397c97e993851029967e5df5
(cherry picked from commit 160880a18536d464d10d4f2ad8e38581e9ea3e3d)
2018-04-19 14:52:59 +00:00
Thomas Vachuska
a7be50dc88 Making REST API port as a command-line option for various admin commands.
Also cleaning up usage for consistency.

Change-Id: I1d8a10c063cab5992033b97d6efa60bba030ed9e
2018-04-16 22:29:41 +00:00
Pier
4099f056b9 Improve onos-diagnostics with new multicast commands and interface command
Change-Id: I478eb589aedd6c4c4e821c2e6c308a21c1142d36
2018-04-06 02:10:24 +00:00
Andreas Pantelopoulos
ff691b7f63 Implemented the following PW features and fixes:
- PW support for H-AGG topologies. Support for leaf-spine-spine
     leaf-spine-spine-leaf pseudowires.
   - Renamed pw commands with sr-pw-* pattern and also removed redundant output
    from them.
   - Enabled bulk addition / removal of pws from the rest api.
   - Modified diagnostics tool with the updated command name.

Change-Id: I708db9281d0082b160cbd713910b420ef7df9da3
2018-03-14 00:55:56 +00:00
Charles Chan
c6576fa86c Adding SR commands to onos-diagnostics
Change-Id: I00d2ec1565811be77893846b18db991b69776f71
(cherry picked from commit 415bb2347203a76b5a1a350229f03a603a484ebf)
2018-03-09 17:07:16 +00:00
Thomas Vachuska
7f2a356294 Creating build of a small bundle of remote administrative tools that
can be installed separately from the ONOS source or ONOS runtime.

Change-Id: I0f8a7e2739010f34d913d79ab40390aef3fc07e2
2018-02-28 18:57:05 +00:00
Thomas Vachuska
a40aa0b806 Adding feature repo listing to the diagnostics commands.
Change-Id: I63a22b798265f6c3e4bacff87fc6284cd94c4831
(cherry picked from commit b831911ab31f841a808dda377e4f06f2c738d150)
2018-02-02 22:19:57 +00:00
Thomas Vachuska
15370d2a16 Adding a tool for remote collection of node and cluster diagnostics.
- Includes 'onos-diagnostics', 'onos-node-diagnostics'
- Includes REST API /onos/v1/diagnostics

Change-Id: Ife0a15627b14238d0fce52b01b72d56e6a1fe40f
2018-02-01 17:13:36 +00:00
Thomas Vachuska
ad37e3733e Integrating YANG live compilation into YANG runtime.
- Bumped ONOS dependency on ONOS YANG tools 2.2.0-b4.
- Added CLI to compile YANG models.
- Added GUI capability to compile YANG models via drag-n-drop or file upload.
- Fixed defect in propagating self-contained JAR apps through the cluster.

Change-Id: Icbd2a588bf1ffe0282e12d3d10a117e0957c3084
2017-08-09 21:30:40 +00:00
Brian O'Connor
a09fe5b0b7 Updating Copyright line to Open Networking Foundation
Change-Id: Icba96d7f39a065b53f34a6aeb71afd1f7d51f774
2017-08-03 21:12:30 -07:00
Ray Milkey
a67943de5e Shell tool to interface to the ONOS component config REST API
Part of ONOS-6597

Change-Id: I0787467c25569dae06878715e05e468e5fa7a440
2017-06-15 23:19:38 +00:00
Ray Milkey
5c0d8f92cb Make test tools available in installed ONOS
Part of ONOS-6597
onos-app, onos-netcfg

Change-Id: Ic58156700e357c9564e9bd9fe1173310ec6f0502
2017-06-14 15:18:42 +00:00