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 onf-traffic-class { |
| 6 | namespace "http://opennetworking.org/aether/traffic-class"; |
| 7 | prefix tp; |
| 8 | |
| 9 | import ietf-yang-types{ prefix yg; } |
| 10 | import onf-aether-types{ prefix at; } |
| 11 | |
| 12 | organization "Open Networking Foundation."; |
| 13 | contact "Scott Baker"; |
| 14 | description |
| 15 | "The aether traffic class associates qos constants |
| 16 | with a named class of service"; |
| 17 | |
| 18 | revision "2021-09-10" { |
| 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 | } |
| 27 | } |
| 28 | |
| 29 | container traffic-class { |
| 30 | description "The top level container"; |
| 31 | |
| 32 | list traffic-class { |
| 33 | key "id"; |
| 34 | description |
| 35 | "List of traffic class"; |
| 36 | |
| 37 | leaf id { |
| 38 | type traffic-class-id; |
| 39 | description "ID for this traffic class."; |
| 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 | leaf arp { |
| 50 | type at:arp; |
| 51 | description "Allocation and Retention Priority. 1 is the highest. 15 is the lowest."; |
Scott Baker | 988705a | 2021-10-13 17:24:49 -0700 | [diff] [blame] | 52 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 53 | |
| 54 | leaf qci { |
| 55 | type at:qci; |
| 56 | description "QOS Class Identifier"; |
Scott Baker | 988705a | 2021-10-13 17:24:49 -0700 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | leaf pelr { |
| 60 | type at:pelr; |
| 61 | description "PELR exponent"; |
| 62 | } |
| 63 | |
| 64 | leaf pdb { |
| 65 | type at:pdb; |
| 66 | description "PDB"; |
| 67 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 68 | |
| 69 | leaf description { |
| 70 | type at:description; |
| 71 | description "description of this traffic class"; |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | } |