blob: f4f6cdf971d8db807af807ce336e6e63e025445f [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// 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 }
28
29 container traffic-class {
30 description "The top level container";
31
32 list traffic-class {
33 key "id";
34 description
35 "List of traffic class";
36
37 leaf id {
38 type traffic-class-id;
39 description "ID for this traffic class.";
40 }
41
42 leaf display-name {
43 type string {
44 length 1..80;
45 }
46 description "display name to use in GUI or CLI";
47 }
48
49 leaf arp {
50 type at:arp;
51 description "Allocation and Retention Priority. 1 is the highest. 15 is the lowest.";
Scott Baker988705a2021-10-13 17:24:49 -070052 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070053
54 leaf qci {
55 type at:qci;
56 description "QOS Class Identifier";
Scott Baker988705a2021-10-13 17:24:49 -070057 }
58
59 leaf pelr {
60 type at:pelr;
61 description "PELR exponent";
62 }
63
64 leaf pdb {
65 type at:pdb;
66 description "PDB";
67 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070068
69 leaf description {
70 type at:description;
71 description "description of this traffic class";
72 }
73 }
74 }
75}