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-vcs { |
| 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; } |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 10 | |
| 11 | include onf-upf; |
| 12 | include onf-device-group; |
| 13 | include onf-application; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 14 | |
| 15 | organization "Open Networking Foundation."; |
| 16 | contact "Scott Baker"; |
| 17 | description |
| 18 | "An Aether Virtual Cellular Service (VCS) is |
| 19 | used to connect devices with applications"; |
| 20 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 21 | revision "2022-01-14" { |
| 22 | description "Refactored as submodule"; |
| 23 | reference "RFC 6020"; |
| 24 | } |
| 25 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 26 | revision "2021-09-10" { |
| 27 | description "An Aether Virtual Cellular Service"; |
| 28 | reference "RFC 6087"; |
| 29 | } |
| 30 | |
| 31 | typedef vcs-id { |
| 32 | type yg:yang-identifier { |
| 33 | length 1..32; |
| 34 | } |
| 35 | description "The typedef for vcs-id"; |
| 36 | } |
| 37 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 38 | grouping vcs { |
| 39 | description "The vcs grouping"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 40 | |
| 41 | list vcs { |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 42 | key "vcs-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 43 | description |
| 44 | "List of virtual cellular services"; |
| 45 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 46 | leaf vcs-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 47 | type vcs-id; |
| 48 | description "ID for this vcs."; |
| 49 | } |
| 50 | |
| 51 | leaf display-name { |
| 52 | type string { |
| 53 | length 1..80; |
| 54 | } |
| 55 | description "display name to use in GUI or CLI"; |
| 56 | } |
| 57 | |
| 58 | list device-group { |
| 59 | key "device-group"; |
| 60 | leaf device-group { |
| 61 | type leafref { |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 62 | path "../../../device-group/dg-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 63 | } |
| 64 | description |
| 65 | "Link to device group"; |
| 66 | } |
| 67 | leaf enable { |
| 68 | type boolean; |
| 69 | default true; |
| 70 | description |
| 71 | "Enable this device group"; |
| 72 | } |
| 73 | description |
| 74 | "A list of device groups. Groups will only participate in |
| 75 | the VCS if the enable field is set to True"; |
| 76 | } |
| 77 | |
| 78 | leaf default-behavior { |
| 79 | type at:behavior; |
| 80 | mandatory true; |
| 81 | description |
| 82 | "Default behavior if no filter rules match"; |
| 83 | } |
| 84 | |
| 85 | list filter { |
| 86 | key "application"; |
| 87 | leaf application { |
| 88 | type leafref { |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 89 | path "../../../../application/app-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 90 | } |
| 91 | mandatory true; |
| 92 | description |
| 93 | "Link to application"; |
| 94 | } |
| 95 | leaf priority { |
| 96 | type at:priority; |
| 97 | default 0; |
| 98 | description |
| 99 | "Priority of this application"; |
| 100 | } |
| 101 | leaf allow { |
| 102 | type boolean; |
| 103 | default true; |
| 104 | description |
| 105 | "Allow or deny this application"; |
| 106 | } |
| 107 | description |
| 108 | "A list of applications to allow and/or deny. Rules are executed in |
| 109 | priority order. The first rule to match will determine the fate |
| 110 | of the packet."; |
| 111 | } |
| 112 | |
| 113 | leaf upf { |
| 114 | type leafref { |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 115 | path "../../upf/upf-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 116 | } |
| 117 | description |
| 118 | "Link to user plane that implements this vcf"; |
| 119 | } |
| 120 | |
| 121 | leaf description { |
| 122 | type at:description; |
| 123 | description "description of this vcs"; |
| 124 | } |
| 125 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 126 | // the following are populated from the template |
| 127 | leaf sst { |
| 128 | type at:sst; |
| 129 | mandatory true; |
| 130 | description "Slice/Service type. Immutable."; |
| 131 | } |
| 132 | |
| 133 | leaf sd { |
| 134 | type at:sd; |
| 135 | mandatory true; |
| 136 | description "Slice differentiator. Immutable."; |
| 137 | } |
| 138 | |
| 139 | container slice { |
| 140 | description "Per-Slice QOS Settings"; |
| 141 | container mbr { |
| 142 | description "Maximum bitrate"; |
| 143 | leaf uplink { |
| 144 | type at:bitrate; |
| 145 | units bps; |
| 146 | description "Per-Slice MBR uplink data rate in bps"; |
| 147 | } |
| 148 | |
| 149 | leaf downlink { |
| 150 | type at:bitrate; |
| 151 | units bps; |
| 152 | description "Per-Slice MBR downlink data rate in bps"; |
| 153 | } |
| 154 | |
| 155 | leaf uplink-burst-size { |
| 156 | type at:burst; |
| 157 | units bytes; |
| 158 | description "Per-Slice Uplink burst size"; |
| 159 | } |
| 160 | |
| 161 | leaf downlink-burst-size { |
| 162 | type at:burst; |
| 163 | units bytes; |
| 164 | description "Per-Slice Downlink burst size"; |
| 165 | } |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | // end of items populated from the template |
| 170 | } |
| 171 | } |
| 172 | } |