blob: 257f4ff55e8bf9f65fdb8eb6a7ece140f05366b6 [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
21 // simply a unique name. If it's a UUID, could fix the
22 // string length.
23 typedef qos-profile-id {
24 type string {
25 length 1..32;
26 }
27 }
28
29 container qos-profile {
30 description "The top level container";
31
32 list qos-profile {
33 key "id";
34 description
35 "List of qos profiles";
36
37 leaf id {
38 type qos-profile-id;
39 description "ID for this qos profile.";
40 }
41
42 container apn-ambr {
43 leaf uplink {
44 type uint32 {
45 range 0..4294967295;
46 }
47 default 0;
48 units bps;
49 description
50 "Upstream aggregate maximum bit rate";
51 }
52 leaf downlink {
53 type uint32 {
54 range 0..4294967295;
55 }
56 default 0;
57 units bps;
58 description
59 "Downstream aggregate maximum bit rate";
60 }
61 }
62
63 leaf description {
64 type string {
65 length 1..100;
66 }
67 description "description of this profile";
68 }
69 }
70 }
71}