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-template { |
| 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 |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame] | 14 | "The aether slice-template holds common parameters used |
| 15 | by a Slice. Templates are used to |
| 16 | populate a Slice."; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 17 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 18 | revision "2022-01-14" { |
| 19 | description "Refactored as submodule"; |
| 20 | reference "RFC 6020"; |
| 21 | } |
| 22 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 23 | revision "2021-09-10" { |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame] | 24 | description "An Aether Slice Template"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 25 | reference "RFC 6087"; |
| 26 | } |
| 27 | |
| 28 | typedef template-id { |
| 29 | type yg:yang-identifier { |
| 30 | length 1..32; |
| 31 | } |
| 32 | description "The typedef for template-id"; |
| 33 | } |
| 34 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 35 | grouping template { |
| 36 | description "The template grouping"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 37 | |
| 38 | list template { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 39 | key "template-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 40 | description |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame] | 41 | "List of slice templates"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 42 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 43 | leaf template-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 44 | type template-id; |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame] | 45 | description "ID for this slice template."; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 46 | } |
| 47 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 48 | uses at:desc-display-name; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 49 | |
| 50 | leaf sst { |
| 51 | type at:sst; |
| 52 | description "Slice/Service type"; |
| 53 | } |
| 54 | |
| 55 | leaf sd { |
| 56 | type at:sd; |
| 57 | description "Slice differentiator"; |
| 58 | } |
| 59 | |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame] | 60 | container mbr { |
| 61 | description "Per-Slice QOS Settings Maximum Bit Rate"; |
| 62 | leaf uplink { |
| 63 | type at:bitrate; |
| 64 | units bps; |
| 65 | description "Per-Slice MBR uplink data rate in bps"; |
| 66 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 67 | |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame] | 68 | leaf downlink { |
| 69 | type at:bitrate; |
| 70 | units bps; |
| 71 | description "Per-Slice MBR downlink data rate in bps"; |
| 72 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 73 | |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame] | 74 | leaf uplink-burst-size { |
| 75 | type at:burst; |
| 76 | units bytes; |
| 77 | description "Per-Slice Uplink burst size"; |
| 78 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 79 | |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame] | 80 | leaf downlink-burst-size { |
| 81 | type at:burst; |
| 82 | units bytes; |
| 83 | description "Per-Slice Downlink burst size"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 84 | } |
| 85 | } |
| 86 | |
| 87 | leaf default-behavior { |
| 88 | type at:behavior; |
| 89 | mandatory true; |
| 90 | description |
| 91 | "Default behavior if no filter rules match"; |
| 92 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 93 | } |
| 94 | } |
| 95 | } |