Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [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 | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 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 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 8 | import onf-aether-types{ prefix at; } |
| 9 | |
| 10 | organization "Open Networking Foundation."; |
| 11 | contact "Scott Baker"; |
| 12 | description |
| 13 | "The aether traffic class associates qos constants |
| 14 | with a named class of service"; |
| 15 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 16 | revision "2022-01-14" { |
| 17 | description "Refactored as submodule"; |
| 18 | reference "RFC 6020"; |
| 19 | } |
| 20 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 21 | revision "2021-09-10" { |
| 22 | description "An Aether Traffic Class"; |
| 23 | reference "RFC 6087"; |
| 24 | } |
| 25 | |
| 26 | typedef traffic-class-id { |
Scott Baker | 40a7956 | 2022-02-16 15:04:50 -0800 | [diff] [blame] | 27 | type at:aether-identifier; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 28 | description "The typedef for traffic-class-id"; |
| 29 | } |
| 30 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 31 | grouping traffic-class { |
| 32 | description "The traffic-class grouping"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 33 | |
| 34 | list traffic-class { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 35 | key "traffic-class-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 36 | description |
| 37 | "List of traffic class"; |
| 38 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 39 | leaf traffic-class-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 40 | type traffic-class-id; |
| 41 | description "ID for this traffic class."; |
| 42 | } |
| 43 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 44 | uses at:desc-display-name; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 45 | |
| 46 | leaf arp { |
| 47 | type at:arp; |
| 48 | description "Allocation and Retention Priority. 1 is the highest. 15 is the lowest."; |
| 49 | } |
| 50 | |
| 51 | leaf qci { |
| 52 | type at:qci; |
| 53 | description "QOS Class Identifier"; |
| 54 | } |
| 55 | |
| 56 | leaf pelr { |
| 57 | type at:pelr; |
| 58 | description "PELR exponent"; |
| 59 | } |
| 60 | |
| 61 | leaf pdb { |
| 62 | type at:pdb; |
| 63 | description "PDB"; |
| 64 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 65 | } |
| 66 | } |
| 67 | } |