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"; |
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-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 | } |
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 pelr { |
| 51 | type at:pelr; |
| 52 | description "PELR exponent"; |
| 53 | } |
| 54 | |
| 55 | leaf pdb { |
| 56 | type at:pdb; |
| 57 | description "PDB"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 58 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 59 | |
| 60 | leaf qci { |
| 61 | type at:qci; |
| 62 | description "QCI"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 63 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 64 | |
| 65 | leaf description { |
| 66 | type at:description; |
| 67 | description "description of this traffic class"; |
| 68 | } |
| 69 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 70 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 71 | } |