From: Vishal Thapar Date: Mon, 28 May 2018 06:18:36 +0000 (+0530) Subject: QoS: Add support for direction X-Git-Tag: release/fluorine~25 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=71c9e9dfa87bf2bba5650c97012de6b923f2b973;p=neutron.git QoS: Add support for direction * Add direction support for Bandwidth Limit rules JIRA: NETVIRT-1242 Change-Id: I3a42344e909213ba6af10f5b7d7250ad7a8213b7 Signed-off-by: Vishal Thapar --- diff --git a/model/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/neutron/constants/rev150712/NeutronUtils.java b/model/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/neutron/constants/rev150712/NeutronUtils.java index e71d74b8f..37fd64676 100644 --- a/model/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/neutron/constants/rev150712/NeutronUtils.java +++ b/model/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/neutron/constants/rev150712/NeutronUtils.java @@ -81,8 +81,10 @@ public final class NeutronUtils { public static Class get(String key) { return MAPPER.get(key); } + public static String getDirectionString(Class direction) { return MAPPER_INVERSE.get(direction); } + } } diff --git a/model/src/main/yang/neutron-qos.yang b/model/src/main/yang/neutron-qos.yang index 29e522bd5..879e9cf52 100644 --- a/model/src/main/yang/neutron-qos.yang +++ b/model/src/main/yang/neutron-qos.yang @@ -52,6 +52,12 @@ module neutron-qos { type uint64; description "The burst over the maximum KBPS value"; } + leaf direction { + type identityref { + base "constants:direction-base"; + } + description "The traffic direction"; + } } grouping dscpmarking-rule-attributes { diff --git a/neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronQosBandwidthLimitRule.java b/neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronQosBandwidthLimitRule.java index 52c4a1e9f..86ee5b6df 100644 --- a/neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronQosBandwidthLimitRule.java +++ b/neutron-spi/src/main/java/org/opendaylight/neutron/spi/NeutronQosBandwidthLimitRule.java @@ -25,6 +25,9 @@ public final class NeutronQosBandwidthLimitRule extends NeutronObject