blob: 4a4a96d5e75d2c33c6796b8e18e05bb4755a9714 [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
Sean Condon11d6f422022-01-14 13:02:03 +00005submodule onf-traffic-class {
6 belongs-to onf-enterprise { prefix ent; }
Scott Bakerfdbad762022-01-03 16:00:45 -08007
8 import ietf-yang-types{ prefix yg; }
9 import onf-aether-types{ prefix at; }
10
11 organization "Open Networking Foundation.";
12 contact "Scott Baker";
13 description
14 "The aether traffic class associates qos constants
15 with a named class of service";
16
Sean Condon11d6f422022-01-14 13:02:03 +000017 revision "2022-01-14" {
18 description "Refactored as submodule";
19 reference "RFC 6020";
20 }
21
Scott Bakerfdbad762022-01-03 16:00:45 -080022 revision "2021-09-10" {
23 description "An Aether Traffic Class";
24 reference "RFC 6087";
25 }
26
27 typedef traffic-class-id {
28 type yg:yang-identifier {
29 length 1..32;
30 }
31 description "The typedef for traffic-class-id";
32 }
33
Sean Condon11d6f422022-01-14 13:02:03 +000034 grouping traffic-class {
35 description "The traffic-class grouping";
Scott Bakerfdbad762022-01-03 16:00:45 -080036
37 list traffic-class {
Sean Condon11d6f422022-01-14 13:02:03 +000038 key "tc-id";
Scott Bakerfdbad762022-01-03 16:00:45 -080039 description
40 "List of traffic class";
41
Sean Condon11d6f422022-01-14 13:02:03 +000042 leaf tc-id {
Scott Bakerfdbad762022-01-03 16:00:45 -080043 type traffic-class-id;
44 description "ID for this traffic class.";
45 }
46
47 leaf display-name {
48 type string {
49 length 1..80;
50 }
51 description "display name to use in GUI or CLI";
52 }
53
54 leaf arp {
55 type at:arp;
56 description "Allocation and Retention Priority. 1 is the highest. 15 is the lowest.";
57 }
58
59 leaf qci {
60 type at:qci;
61 description "QOS Class Identifier";
62 }
63
64 leaf pelr {
65 type at:pelr;
66 description "PELR exponent";
67 }
68
69 leaf pdb {
70 type at:pdb;
71 description "PDB";
72 }
73
74 leaf description {
75 type at:description;
76 description "description of this traffic class";
77 }
78 }
79 }
80}