blob: f8658fbf640cce5f77498829896bef28d218a166 [file] [log] [blame]
Scott Bakerfdbad762022-01-03 16:00:45 -08001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Bakerfdbad762022-01-03 16:00:45 -08004
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 Condon9f7966e2022-02-03 10:55:06 +000038 key "traffic-class-id";
Scott Bakerfdbad762022-01-03 16:00:45 -080039 description
40 "List of traffic class";
41
Sean Condon9f7966e2022-02-03 10:55:06 +000042 leaf traffic-class-id {
Scott Bakerfdbad762022-01-03 16:00:45 -080043 type traffic-class-id;
44 description "ID for this traffic class.";
45 }
46
Sean Condon9f7966e2022-02-03 10:55:06 +000047 uses at:desc-display-name;
Scott Bakerfdbad762022-01-03 16:00:45 -080048
49 leaf arp {
50 type at:arp;
51 description "Allocation and Retention Priority. 1 is the highest. 15 is the lowest.";
52 }
53
54 leaf qci {
55 type at:qci;
56 description "QOS Class Identifier";
57 }
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 Bakerfdbad762022-01-03 16:00:45 -080068 }
69 }
70}