blob: c0d80255bc4355dd8d6120ddf173071d31ef7b6c [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 qos-profile {
6 namespace "http://opennetworking.org/aether/qos-profile";
7 prefix pro;
8
9 organization "Open Networking Foundation.";
10 contact "Scott Baker";
11 description "To generate JSON from this use command
12 pyang -f jtoxx test1.yang | python3 -m json.tool > test1.json
13 Copied from YangUIComponents project";
14
15 revision "2020-08-18" {
16 description "An Aether qos Profile";
17 reference "RFC 6087";
18 }
19
20 // TODO: Think more on whether this should be a UUID or
PUSHP RAJba2e32f2021-11-02 10:39:24 +000021 // simply a unique name. If it's a UUID, could fix the
Scott Bakerc9d3d842021-09-17 11:32:53 -070022 // string length.
23 typedef qos-profile-id {
24 type string {
25 length 1..32;
26 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000027 description "The typedef for qos-profile-id";
Scott Bakerc9d3d842021-09-17 11:32:53 -070028 }
29
30 container qos-profile {
31 description "The top level container";
32
33 list qos-profile {
34 key "id";
35 description
36 "List of qos profiles";
37
38 leaf id {
39 type qos-profile-id;
40 description "ID for this qos profile.";
41 }
42
43 container apn-ambr {
44 leaf uplink {
45 type uint32 {
46 range 0..4294967295;
47 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000048 units bps;
Scott Bakerc9d3d842021-09-17 11:32:53 -070049 default 0;
Scott Bakerc9d3d842021-09-17 11:32:53 -070050 description
51 "Upstream aggregate maximum bit rate";
52 }
53 leaf downlink {
54 type uint32 {
55 range 0..4294967295;
56 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070057 units bps;
PUSHP RAJba2e32f2021-11-02 10:39:24 +000058 default 0;
Scott Bakerc9d3d842021-09-17 11:32:53 -070059 description
60 "Downstream aggregate maximum bit rate";
PUSHP RAJba2e32f2021-11-02 10:39:24 +000061 }
62 description "The container for apn-ambr";
Scott Bakerc9d3d842021-09-17 11:32:53 -070063 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000064
Scott Bakerc9d3d842021-09-17 11:32:53 -070065 leaf description {
66 type string {
67 length 1..100;
68 }
69 description "description of this profile";
70 }
71 }
PUSHP RAJba2e32f2021-11-02 10:39:24 +000072 }
Scott Bakerc9d3d842021-09-17 11:32:53 -070073}