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 base "constants:direction-base";
59 description "The traffic direction";
63 grouping dscpmarking-rule-attributes {
66 range "0 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 22 | 24 | 26 | 28 | 30 | 32 | 34 | 36
67 | 38 | 40 | 46 | 48 | 56";
69 description "the value of dscp mark";
73 grouping minimumbandwidth-rule-attributes {
76 description "The minimum KBPS value";
80 base "constants:direction-base";
82 description "The traffic direction";
86 grouping qos-attributes {
87 container qos-policies {
90 uses attrs:base-attributes;
91 uses qos-policy-attributes;
92 list bandwidth-limit-rules {
94 uses attrs:id-attributes;
95 uses bandwidthlimit-rule-attributes;
97 list dscpmarking-rules {
99 uses attrs:id-attributes;
100 uses dscpmarking-rule-attributes;
102 list minimumbandwidth-rules {
104 uses attrs:id-attributes;
105 uses minimumbandwidth-rule-attributes;
109 container qos-rule-types {