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 | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 38 | key "traffic-class-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 39 | description |
| 40 | "List of traffic class"; |
| 41 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 42 | leaf traffic-class-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 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 47 | uses at:desc-display-name; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 48 | |
| 49 | leaf arp { |
| 50 | type at:arp; |
| 51 | description "Allocation and Retention Priority. 1 is the highest. 15 is the lowest."; |
| 52 | } |
| 53 | |
| 54 | leaf qci { |
| 55 | type at:qci; |
| 56 | description "QOS Class Identifier"; |
| 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 | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 68 | } |
| 69 | } |
| 70 | } |