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