2 * Copyright (c) 2016 Intel Corporation. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
12 namespace "urn:opendaylight:neutron-qos";
16 import ietf-yang-types { prefix "yang"; revision-date "2013-07-15"; }
17 import neutron-attrs { prefix "attrs"; }
18 import neutron-constants { prefix "constants"; }
20 organization "OpenDaylight Neutron Group";
22 contact "Pramod Raghavendra Jayathirth <pramod.rj07@gmail.com>";
24 description "This YANG module defines qos attributes that are used
25 by OpenDaylight Neutron YANG module.";
27 revision "2016-06-13" {
29 "OpenDaylight Boron release";
32 grouping qos-policy-attributes {
35 description "Whether the policy is shared or not";
39 grouping qos-rule-type {
42 description "The type of the qos rule";
46 grouping bandwidthlimit-rule-attributes {
49 description "The maximum KBPS value";
53 description "The burst over the maximum KBPS value";
57 grouping dscpmarking-rule-attributes {
60 range "0 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36
61 | 38 | 40 | 46 | 48 | 56";
63 description "the value of dscp mark";
67 grouping minimumbandwidth-rule-attributes {
70 description "The minimum KBPS value";
74 base "constants:direction-minimum-bandwidth-rule";
76 description "The traffic direction";
80 grouping qos-attributes {
81 container qos-policies {
84 uses attrs:base-attributes;
85 uses qos-policy-attributes;
86 list bandwidth-limit-rules {
88 uses attrs:id-attributes;
89 uses bandwidthlimit-rule-attributes;
91 list dscpmarking-rules {
93 uses attrs:id-attributes;
94 uses dscpmarking-rule-attributes;
96 list minimumbandwidth-rules {
98 uses attrs:id-attributes;
99 uses minimumbandwidth-rule-attributes;
103 container qos-rule-types {