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 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"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 14 | description |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 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 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 27 | description "The typedef for traffic-class-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | container traffic-class { |
| 31 | description "The top level container"; |
| 32 | |
| 33 | list traffic-class { |
| 34 | key "id"; |
| 35 | description |
| 36 | "List of traffic class"; |
| 37 | |
| 38 | leaf id { |
| 39 | type traffic-class-id; |
| 40 | description "ID for this traffic class."; |
| 41 | } |
| 42 | |
| 43 | leaf display-name { |
| 44 | type string { |
| 45 | length 1..80; |
| 46 | } |
| 47 | description "display name to use in GUI or CLI"; |
| 48 | } |
| 49 | |
| 50 | leaf arp { |
| 51 | type at:arp; |
| 52 | 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] | 53 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 54 | |
| 55 | leaf qci { |
| 56 | type at:qci; |
| 57 | description "QOS Class Identifier"; |
Scott Baker | 988705a | 2021-10-13 17:24:49 -0700 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | leaf pelr { |
| 61 | type at:pelr; |
| 62 | description "PELR exponent"; |
| 63 | } |
| 64 | |
| 65 | leaf pdb { |
| 66 | type at:pdb; |
| 67 | description "PDB"; |
| 68 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 69 | |
| 70 | leaf description { |
| 71 | type at:description; |
| 72 | description "description of this traffic class"; |
| 73 | } |
| 74 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 75 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 76 | } |