blob: a59226756af683f822c526db9807c751087b69e9 [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";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000014 description
Scott Bakerc9d3d842021-09-17 11:32:53 -070015 "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 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000027 description "The typedef for traffic-class-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070028 }
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.";
Scott Baker988705a2021-10-13 17:24:49 -070053 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070054
55 leaf qci {
56 type at:qci;
57 description "QOS Class Identifier";
Scott Baker988705a2021-10-13 17:24:49 -070058 }
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 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070069
70 leaf description {
71 type at:description;
72 description "description of this traffic class";
73 }
74 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000075 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070076}