Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | module 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-10-22" { |
| 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 | leaf display-name { |
| 43 | type string { |
| 44 | length 1..80; |
| 45 | } |
| 46 | description "display name to use in GUI or CLI"; |
| 47 | } |
| 48 | |
| 49 | container apn-ambr { |
| 50 | leaf uplink { |
| 51 | type uint32 { |
| 52 | range 0..4294967295; |
| 53 | } |
| 54 | default 0; |
| 55 | units bps; |
| 56 | description |
| 57 | "Upstream aggregate maximum bit rate"; |
| 58 | } |
| 59 | leaf downlink { |
| 60 | type uint32 { |
| 61 | range 0..4294967295; |
| 62 | } |
| 63 | default 0; |
| 64 | units bps; |
| 65 | description |
| 66 | "Downstream aggregate maximum bit rate"; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | leaf qci { |
| 71 | type uint32 { |
| 72 | range 0..85; |
| 73 | } |
| 74 | default 9; |
| 75 | description |
| 76 | "QoS Class Identifier"; |
| 77 | } |
| 78 | |
| 79 | container arp { |
| 80 | leaf priority { |
| 81 | type uint32 { |
| 82 | range 0..15; |
| 83 | } |
| 84 | default 0; |
| 85 | description |
| 86 | "Priority"; |
| 87 | } |
| 88 | leaf preemption-capability { |
| 89 | type boolean; |
| 90 | default true; |
| 91 | description |
| 92 | "True if a bearer with lower priority should be dropped"; |
| 93 | } |
| 94 | leaf preemption-vulnerability { |
| 95 | type boolean; |
| 96 | default true; |
| 97 | description |
| 98 | "This bearer may be dropped for a bearer with higher priority"; |
| 99 | } |
| 100 | description "Evolved-ARP"; |
| 101 | } |
| 102 | |
| 103 | leaf description { |
| 104 | type string { |
| 105 | length 1..100; |
| 106 | } |
| 107 | description "description of this profile"; |
| 108 | } |
| 109 | } |
| 110 | } |
| 111 | } |