BUG 5746 - Ovsdb QoS and Queue model enhancements 72/36772/11
authorEric Multanen <eric.w.multanen@intel.com>
Fri, 25 Mar 2016 16:06:29 +0000 (09:06 -0700)
committerEric Multanen <eric.w.multanen@intel.com>
Wed, 15 Jun 2016 22:06:28 +0000 (15:06 -0700)
commit6ade04efd8899ba18249dfa705e5b64b13ef3ca8
tree3c34af282361ecaaf1e56d785302c1a08671fce0
parent810a16545606b64c821082bb2bb3a47b1214b050
BUG 5746 - Ovsdb QoS and Queue model enhancements

Update the QoS and Queue model to improve managability
of QoS and Queue tables via MD-SAL config model.

Adds code to update operational md-sal using updated
model.

Adds code to allow creation of queue and qos in same
transaction and assign queue to the qos row via
named-uuid.

QoS and Queue entries can be managed by ODL ID
values instead of needing to know the operational
UUID value.

Adds code to support assignment of QoS to port
by MD-SAL QoS ID.

Adds a QoS entry list to the termination point
model so updates and delete operations can be made
directly on the list instead of updating the
termination point.

Support for ingress policing rate and burst configuration
for interfaces is added.

Includes updated Postman examples.

v2 - clarify some logic based on comment feedback
     add additional qos types: linux-sfq, linux-codel
       linux-fq_codel, egress-policer
v3 - rebase, whitespace
v4 - address review comments
v5 - Changes to address review comments:
     Use a queue-ref (instance identifier instead
       of queue-id in the qos queue list.
     Use a qos-ref (instance identifier instead
       of qos-id in the port qos list.
     Use a key of '1' for the single item port qos list.
     Add instance identifer to the external-ids column
       of the qos and queue tables instead of just id
       value.  Use key of 'opendaylight-iid'.
     Updated the postman collection to account for changes
     Clarified the  comment and code of method
       bytesToHexString in TransactUtils.java.

Still to do:
- update unit tests
- update integration tests

Change-Id: I71ac462afe5a881c621fad9a3c5603e1aab8d021
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
14 files changed:
resources/commons/Qos-and-Queue-Collection.json.postman_collection
schemas/openvswitch/src/main/java/org/opendaylight/ovsdb/schema/openvswitch/Interface.java
southbound/southbound-api/src/main/yang/ovsdb.yang
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/SouthboundConstants.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QosUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/QueueUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TerminationPointUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TransactUtils.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/transactions/md/OvsdbPortUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/transactions/md/OvsdbQosUpdateCommand.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/transactions/md/OvsdbQueueUpdateCommand.java
southbound/southbound-impl/src/test/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TerminationPointUpdateCommandTest.java
southbound/southbound-impl/src/test/java/org/opendaylight/ovsdb/southbound/transactions/md/OvsdbPortUpdateCommandTest.java
southbound/southbound-it/src/test/java/org/opendaylight/ovsdb/southbound/it/SouthboundIT.java