blob: 88a949552ac4a7a35a4a315bd4b1970917464bc5 [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Bakerc9d3d842021-09-17 11:32:53 -07004
5module traffic-class {
6 namespace "http://opennetworking.org/aether/traffic-class";
7 prefix tp;
8
9 import aether-types{ prefix at; }
10 import ietf-yang-types{ prefix yg; }
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-06-02" {
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 pelr {
51 type at:pelr;
52 description "PELR exponent";
53 }
54
55 leaf pdb {
56 type at:pdb;
57 description "PDB";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000058 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070059
60 leaf qci {
61 type at:qci;
62 description "QCI";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000063 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070064
65 leaf description {
66 type at:description;
67 description "description of this traffic class";
68 }
69 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000070 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070071}