blob: a59226756af683f822c526db9807c751087b69e9 [file] [log] [blame]
Scott Bakerfdbad762022-01-03 16:00:45 -08001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
3// SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
5module onf-traffic-class {
6 namespace "http://opennetworking.org/aether/traffic-class";
7 prefix tp;
8
9 import ietf-yang-types{ prefix yg; }
10 import onf-aether-types{ prefix at; }
11
12 organization "Open Networking Foundation.";
13 contact "Scott Baker";
14 description
15 "The aether traffic class associates qos constants
16 with a named class of service";
17
18 revision "2021-09-10" {
19 description "An Aether Traffic Class";
20 reference "RFC 6087";
21 }
22
23 typedef traffic-class-id {
24 type yg:yang-identifier {
25 length 1..32;
26 }
27 description "The typedef for traffic-class-id";
28 }
29
30 container traffic-class {
31 description "The top level container";
32
33 list traffic-class {
34 key "id";
35 description
36 "List of traffic class";
37
38 leaf id {
39 type traffic-class-id;
40 description "ID for this traffic class.";
41 }
42
43 leaf display-name {
44 type string {
45 length 1..80;
46 }
47 description "display name to use in GUI or CLI";
48 }
49
50 leaf arp {
51 type at:arp;
52 description "Allocation and Retention Priority. 1 is the highest. 15 is the lowest.";
53 }
54
55 leaf qci {
56 type at:qci;
57 description "QOS Class Identifier";
58 }
59
60 leaf pelr {
61 type at:pelr;
62 description "PELR exponent";
63 }
64
65 leaf pdb {
66 type at:pdb;
67 description "PDB";
68 }
69
70 leaf description {
71 type at:description;
72 description "description of this traffic class";
73 }
74 }
75 }
76}