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 traffic-class { |
| 6 | namespace "http://opennetworking.org/aether/traffic-class"; |
| 7 | prefix tp; |
| 8 | |
| 9 | import aether-types{ prefix at; } |
| 10 | import ietf-yang-types{ prefix yg; } |
| 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-06-02" { |
| 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 pelr { |
| 50 | type at:pelr; |
| 51 | description "PELR exponent"; |
| 52 | } |
| 53 | |
| 54 | leaf pdb { |
| 55 | type at:pdb; |
| 56 | description "PDB"; |
| 57 | } |
| 58 | |
| 59 | leaf qci { |
| 60 | type at:qci; |
| 61 | description "QCI"; |
| 62 | } |
| 63 | |
| 64 | leaf description { |
| 65 | type at:description; |
| 66 | description "description of this traffic class"; |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | } |