Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
Sean Condon | 160ec1d | 2022-02-08 12:58:25 +0000 | [diff] [blame] | 3 | // SPDX-License-Identifier: Apache-2.0 |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 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-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 RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 21 | // simply a unique name. If it's a UUID, could fix the |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 22 | // string length. |
| 23 | typedef qos-profile-id { |
| 24 | type string { |
| 25 | length 1..32; |
| 26 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 27 | description "The typedef for qos-profile-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 28 | } |
| 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 RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 48 | units bps; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 49 | default 0; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 50 | description |
| 51 | "Upstream aggregate maximum bit rate"; |
| 52 | } |
| 53 | leaf downlink { |
| 54 | type uint32 { |
| 55 | range 0..4294967295; |
| 56 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 57 | units bps; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 58 | default 0; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 59 | description |
| 60 | "Downstream aggregate maximum bit rate"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 61 | } |
| 62 | description "The container for apn-ambr"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 63 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 64 | |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 65 | leaf description { |
| 66 | type string { |
| 67 | length 1..100; |
| 68 | } |
| 69 | description "description of this profile"; |
| 70 | } |
| 71 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 72 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 73 | } |