825 Commits

Author SHA1 Message Date
Niraj Dubey
0a9b500936 Fix portstats cli for json output.
Jira Id: ONOS-8134

Change-Id: If0f33d1eee230f6ceebf57acebfc81aef599e03c
2021-10-25 05:21:19 +00:00
Michael Enrico
584eebdcf1 [ONOS-8143] Updates to Polatis optical switch NETCONF driver
- fixed long standing bug in DeviceDescription behaviour
 - added a form of LinkDiscovery behaviour
 - added PortAdmin and InternalConnectivity behaviours
 - added a CLI command 'get-output-ports' to exploit the InternalConnectivity behaviour
 - overloaded the loadXml method in drivers/utilities/XmlConfigParser class to allow suppression of comma delimitation within
   XML tags

Change-Id: I042e5559cf358d969686a63da99e91371a085d83
2021-09-21 21:37:43 +00:00
pierventre
c0914ec586 [SDFAB-500][SDFAB-527] Meters cleanup and leftovers
- Improve ONOS cli enabling CRUD of p4rt trtcm
- Improve ONOS rest enabling CRUD of p4rt trtcm
- Improve MeterService with scope defined reads and integrate in cli/rest
- Add support along the stack for BYTE_PER_SEC unit
- Add support along the stack for COMMITTED and PEAK bands
- Fix several bugs in ONOS cli/rest interfaces
- Improve REST codecs
- Fix NPE in MeterDriverProvider
- Improve PiMeterTransalation by enforcing trtcm config
- Implement explicit translation of the bands
- Fix ONOS reconciliation by removing from the mirror the wrong configs
- Remove unnecessary checks in MeterEntryCodec
- Update unit tests

It will follow a 2nd patch to complete SDFAB-527

Change-Id: I855235b17f60cb1d39f5b9a042c1015105a8a269
2021-09-10 10:22:18 +00:00
Jordan Halterman
f17d173959 [AETHER-75] Add command to force snapshot of Raft partitions.
Change-Id: I1e79967e3dcbf353749b6a1e524ce71c763ca588
2021-04-06 20:12:55 +02:00
alessio
0af65230b9 [ODTN] Interface of a new driver behavior for checking internal connectivity in a device.
This would be used mostly for optical devices which typically have many connectivity constraints.

The patch also includes a CLI command to using driver behavior and an empty driver implementation.

patch 1: first draft: behaviour, CLI, empty driver, xml.

patch 2,3,4,6: checkstyle.

patch 5: comments by Andrea.

Change-Id: Ia1573a9f14b49c39c96fa3351ccc37988f1526ec
2020-10-28 17:41:17 +00:00
Danny Chang
1a0e1893da Wipe out all packet requests when using the wipeOut command.
Change-Id: I76e451b3271acad567a5774d298b3b4d2896630c
2020-09-11 15:26:48 +00:00
Thomas Vachuska
c6ea647501 Revert "Introduced SetPackage and SwitchControlProcessor RPC to gNOI implementation."
This reverts commit 992bf52f25d491afec8d8e54efb5c3a8125b77bb.

Reason for revert: Broke the master build.

Change-Id: If47508a8cff95bd6e9c57f7234baa517879a54cf
2020-07-30 23:24:24 +00:00
Serhii Boiko
992bf52f25 Introduced SetPackage and SwitchControlProcessor RPC to gNOI implementation.
Change-Id: Ib8df537459b50bb83fadfe217e6ea5cd2bf6da5f
2020-07-30 19:44:19 +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
Andrea Campanella
2325050b8b [ONOS-8093] Purge Meter API
Change-Id: I8e5a6826793b9f17d7115e241a12e3a2972b38a9
(cherry picked from commit 4e4084cd6ded060616a5afa7d3af427715cfc2d0)
2020-05-13 16:16:45 +00: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
Thomas Vachuska
811ea2b63d Add ability to administratively remove ports of an offline device.
Change-Id: Iaee085be1cd53f783ed80e7c277403eb65ef6d8f
2020-02-11 19:49:53 +00:00
Ray Milkey
d4a28ca901 Revert "Add ability to administratively remove ports of an offline device."
This reverts commit 38d24f316a850c0c4e8c44fecf7a3caec60bd40c.

Change-Id: Ida101ef112072ccf0c74d19df1d0f9b0df05f58c
2020-02-11 19:17:22 +00:00
Thomas Vachuska
38d24f316a Add ability to administratively remove ports of an offline device.
Change-Id: If856e306a523af0c7c4f5e7b27ddfbacef120593
2020-02-11 11:12:28 -08:00
Sudeep Desai
c3f655bec5 bit error rate ui and cli for retrieve pre and post fec ber
Change-Id: Ic68ed02ba4516c326baacac814569cb4eebd086f
2020-02-07 08:29:31 +00:00
William Davies
6b2be2fa9b added an option to the groups command to return only unreferenced groups
Change-Id: Id7ece9206d9da97d45725233e02051fc3967c2ee
2020-01-27 07:09:32 +00:00
Charles Chan
eb5bd49982 Added CLI and REST support for auxLocations
Change-Id: I04e78f766dcbb18bce4a2f9160d3740ec2fbd846
2020-01-09 23:34:56 +00:00
Thomas Vachuska
142b309d8e Fixed netcfg cli completers
Change-Id: Ia41990fb62a0f904d505c06fa889dae712c9b554
(cherry picked from commit 8c241fe8329134844b6b289779ee76dacebac81d)
2019-08-30 00:58:45 +00:00
Andrea Campanella
dadf640230 Moving Power values to Double
Change-Id: I3529dffe017784487df31b56430e7b9fb9db0454
2019-08-09 13:27:56 +01:00
Andrea Campanella
3ccee481b9 Fix for Modulation and Power
Change-Id: I579726c25c0f2caad25441c4a737e5180f74bc85
2019-08-07 11:34:57 +02:00
Andrea Campanella
3a36145deb Updating CassiniDriver according to testing with IPI
Change-Id: Ia183f0a9ef432909aafa5480ee5b740425aa1832
2019-08-02 14:26:14 +02:00
alessio
7dbb22d757 Bugfix after testing the annotate cli commands.
Change-Id: I6d6c40595d382bf1f71bdbab72068313bd44d21f
2019-07-26 15:39:34 +00:00
Boyuan Yan
53c2c681a9 [ONOS-8018] only show line-side port for power config.
Change-Id: I53c796654d1a06ebc30424a2765f7e3f786015d6
2019-07-25 07:29:01 +00:00
Arnav Jain
a359b18c99 Added Method InstallRegisteredApps to CLI
Change-Id: Ib795c0c5ad4511ad138b32820038c6cf96aa926d
2019-07-23 18:21:09 +00:00
Arnav Jain
80f2cb8380 Additional Implementation of installApp to CLI interface
Change-Id: Iea7ed2f4be5ffd9acc7e682d6f1625a9af53f902
2019-07-16 20:33:23 +00:00
Arnav Jain
efb57e5f99 Full Fix to getRegisteredApps
Change-Id: I63efb375af941cebcbd858b9b8f03524a72f0562
2019-07-09 14:24:10 -07:00
Carmelo Cascone
5bb59f28e5 Revert "Corrections to getRegisteredApplications and CLI implementation"
ApplicationService is not available. For example, when using the ONOS CLI:

onos> apps -s -a
Service org.onosproject.app.ApplicationService not found

The issue seems to be a circular dependency, as ApplicationManager depends on CoreService, but CoreManager depends on ApplicationService.

Reverting for now.

This reverts commit 35ef3d3000f8b19608531dfd06f8e78482c45b32.

Change-Id: I298c3c7844df7f2395e092fbb89a8e9264883094
2019-07-09 01:30:06 +00:00
Arnav Jain
35ef3d3000 Corrections to getRegisteredApplications and CLI implementation
Change-Id: Ia24997b9fcb5d658592f11f710c0b4e8eb40309a
2019-07-08 20:01:09 +00:00
Boyuan Yan
a00e3d0748 [ONOS-7850] powerconfig for Cassini equipment.
Change-Id: If8a03ca4f2fa29536a56a0ff55d77600baa11d1b
2019-04-23 08:39:32 +00:00
oleksandr.yashchuk@plvision.eu
3dbcaafa0c Initial gNOI implementation added. Introduced system Time and Reboot RPC
Change-Id: I8accdcc6c1ff247408ce54490ceff3972fdf850f
2019-03-26 21:35:33 +00:00
Carmelo Cascone
ab5d41e8ab Add support for enabling/disabling ports for gNMI devices
This change also includes:
- Refactoring of gNMI protocol+driver to take advantage of the recent
changes to the gRPC protocol subsystem (e.g. no more locking, start RPC
with timeouts, etc.).
- Fixed Stratum driver to work after GeneralDeviceProvider refactoring
- Updated bmv2.py to generate ChassisConfig for stratum_bmv2
- Fixed portstate command to use the same port name as in the store

Change-Id: I0dad3bc73e4b6d907b5cf6b7b9a2852943226be7
2019-03-07 07:45:32 +00:00
Jordan Halterman
b81fdc1168 Optimize filtering flow rule counts by state
Change-Id: I1e1d80b8e618743ee449162a081cf42e71c99abf
2019-03-06 17:59:20 -08:00
Thiago Santos
5c34cfe7fb GroupsListCommand: add weight to the CLI output
Makes it much easier for debugging groups

Change-Id: I279770e8d1ceeb1ef6594d88cbfcb8b46cb9fd86
2019-03-04 17:59:22 +00:00
Ray Milkey
4f7e3631d2 Removal of deprecated APIs
- OchSignal constructor
- unfiltered connect point methods in single point to multi point intents
- useBackup() method from disjoint paths
- ChannelAdapter class
- getLastUpdatedInstant() method from cluster store
- switchWorkingPath() method from protection config behaviour
- getVersion() method from partition
- getFlowRulesById() method from flow rule service

Change-Id: I5c6c2f31725f7e7e44ac2abb18ce3fb96b09d93e
2019-02-22 18:01:45 +00:00
Ray Milkey
f632826bc2 Remove deprecated Node APIs
Change-Id: I3e235ff213fc376c02ac01eb43f72d72ab4d17f4
2019-02-20 20:53:18 +00:00
Ray Milkey
8efe27882c Remove deprecated APIs
- Storage Admin Service getPartitionInfo()
- org.onosproject.codec.ExtensionSelectorCodec
- org.onosproject.codec.ExtensionTreatmentCodec
- DefaultPortDescription builder withPortNumer()
- DefaultTableStatisticsEntry public constructors
- IntentData public constructors and copy constructors
- DistributedPrimitiveOptions withMeteringDisbled()
- PartitionService getActiveMembersMembers(), getDistributedPrimitiveCreator()
- DistributedPrimitive DEFAULT_OPERTATION_TIMEOU_MILLIS
- MapEvent.value()
- PartitionClientInfo.sessionId(), session()
- org.onosproject.store.flow.impl.DistributedFlowRuleStore

Change-Id: Id89870e6facf1e7fca24dd180bbd095139d001f3
2019-02-14 17:42:43 +00:00
Ray Milkey
47f09c5674 Remove deprecated FlowRuleExtPayLoad API
Change-Id: Id20e1e296670f8cc94b23c3fd2272a1c2de3990e
2019-02-13 23:17:40 +00:00
Ray Milkey
9d984dfe68 Work around race condition in SCR runtime when bundle pointer is null
Change-Id: Ib380730af66f66a0a628f768b45ff2eb6237aa05
2019-01-04 21:54:41 +00:00
Arjun E K
53a2008eef code modificationss with respect to #20641
Change-Id: Ib6e13458e54e5a1bca578113358913461c237735
2018-12-19 16:57:24 +00:00
Thomas Vachuska
bd8ddfe228 Refactoring audit subsystem to clean-up and eliminate back-dependency from core to CLI; still needs additional work.
Change-Id: I93c04c94f27b7b89c582b359eebe125458a573a7
2018-12-14 14:47:17 -08:00
Carmelo Cascone
a46f554fb1 Fix runtime of P4-related stuff with new karaf
Change-Id: I139575d5b038224ca8ccce4ec71ec8a84b35dfeb
2018-12-12 23:41:01 -08:00
arjunek1992
f6353d4fc8 ONOS audit REST API support
Change-Id: Ic2910785f1f16fe5e36b33c1a73f44539cd8fbea
2018-12-07 21:13:07 +00:00
Rafał Szalecki
de5cf84e30 [ONOS-7842] Implement host annotation using netcfg
Change-Id: I2c5c516d642b34f11cae994b3fea31ebd7d76219
2018-12-04 17:56:16 +00:00
Thomas Vachuska
52f2cd1520 Detangling incubator: virtual nets, tunnels, resource labels, oh my
- virtual networking moved to /apps/virtual; with CLI & REST API
- tunnels and labels moved to /apps/tunnel; with CLI & REST API; UI disabled for now
- protobuf/models moved to /core/protobuf/models
- defunct grpc/rpc registry stuff left under /graveyard
- compile dependencies on /incubator moved to respective modules for compilation
- run-time dependencies will need to be re-tested for dependent apps

- /graveyard will be removed in not-too-distant future

Change-Id: I0a0b995c635487edcf95a352f50dd162186b0b39
2018-11-13 22:14:50 +00:00
Ray Milkey
123f0e08ad Merge branch 'master' into dev-karaf-4.2.1
Change-Id: If6c7d5f1dc6434ac8ea2fd9716b8ebeee38daa50
2018-11-08 14:18:52 -08:00
goeonpark
84bbd859ab resources CLI
Change-Id: Idac7ae69c8264da80cb1b55628990690803eaf89
2018-11-08 18:04:33 +00:00
Ray Milkey
68032db277 Remove blueprint files for 3.0 karaf CLI
Change-Id: I017db2a3c66cea8f0f7c568e5d4f3f302170936d
2018-11-01 20:39:23 +00:00
Ray Milkey
956bb1691a Merge remote-tracking branch 'origin/master' into dev-karaf-4.2.1
Change-Id: If611105632e508cb17352c6f5b1cbcfd85f716d1
2018-10-26 10:53:44 -07:00
hjtsao
1a4333c51c Enhance CLI command 'tablestats' to support P4 switch
Change-Id: Icb7bae93840bac1ad8d49240f61a4f5bf08dac4c
2018-10-26 17:26:35 +00:00
Thomas Vachuska
22ea6126e4 Removing BUCK files and other Buck-related auxiliaries.
Change-Id: I23691380efcd9bce4906695605214ed59ada0e87
2018-10-24 20:02:31 +00:00