Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 5 | submodule onf-traffic-class { |
| 6 | belongs-to onf-enterprise { prefix ent; } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 7 | |
| 8 | import ietf-yang-types{ prefix yg; } |
| 9 | import onf-aether-types{ prefix at; } |
| 10 | |
| 11 | organization "Open Networking Foundation."; |
| 12 | contact "Scott Baker"; |
| 13 | description |
| 14 | "The aether traffic class associates qos constants |
| 15 | with a named class of service"; |
| 16 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 17 | revision "2022-01-14" { |
| 18 | description "Refactored as submodule"; |
| 19 | reference "RFC 6020"; |
| 20 | } |
| 21 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 22 | revision "2021-09-10" { |
| 23 | description "An Aether Traffic Class"; |
| 24 | reference "RFC 6087"; |
| 25 | } |
| 26 | |
| 27 | typedef traffic-class-id { |
| 28 | type yg:yang-identifier { |
| 29 | length 1..32; |
| 30 | } |
| 31 | description "The typedef for traffic-class-id"; |
| 32 | } |
| 33 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 34 | grouping traffic-class { |
| 35 | description "The traffic-class grouping"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 36 | |
| 37 | list traffic-class { |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 38 | key "tc-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 39 | description |
| 40 | "List of traffic class"; |
| 41 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 42 | leaf tc-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 43 | type traffic-class-id; |
| 44 | description "ID for this traffic class."; |
| 45 | } |
| 46 | |
| 47 | leaf display-name { |
| 48 | type string { |
| 49 | length 1..80; |
| 50 | } |
| 51 | description "display name to use in GUI or CLI"; |
| 52 | } |
| 53 | |
| 54 | leaf arp { |
| 55 | type at:arp; |
| 56 | description "Allocation and Retention Priority. 1 is the highest. 15 is the lowest."; |
| 57 | } |
| 58 | |
| 59 | leaf qci { |
| 60 | type at:qci; |
| 61 | description "QOS Class Identifier"; |
| 62 | } |
| 63 | |
| 64 | leaf pelr { |
| 65 | type at:pelr; |
| 66 | description "PELR exponent"; |
| 67 | } |
| 68 | |
| 69 | leaf pdb { |
| 70 | type at:pdb; |
| 71 | description "PDB"; |
| 72 | } |
| 73 | |
| 74 | leaf description { |
| 75 | type at:description; |
| 76 | description "description of this traffic class"; |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | } |