Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [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 | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 4 | |
| 5 | module vcs { |
| 6 | namespace "http://opennetworking.org/aether/vcs"; |
| 7 | prefix sl; |
| 8 | |
| 9 | import template{ prefix vt; } |
| 10 | import upf { prefix upf; } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 11 | import ap-list{ prefix apl; } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 12 | import application{ prefix app; } |
| 13 | import aether-types{ prefix at; } |
| 14 | import device-group{ prefix dg; } |
| 15 | import traffic-class{ prefix tc; } |
| 16 | import ietf-yang-types{ prefix yg; } |
| 17 | import enterprise{ prefix ent; } |
| 18 | |
| 19 | organization "Open Networking Foundation."; |
| 20 | contact "Scott Baker"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 21 | description |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 22 | "An Aether Virtual Cellular Service (VCS) is |
| 23 | used to connect UE devices with applications"; |
| 24 | |
| 25 | revision "2021-06-02" { |
| 26 | description "An Aether Virtual Cellular Service"; |
| 27 | reference "RFC 6087"; |
| 28 | } |
| 29 | |
| 30 | typedef vcs-id { |
| 31 | type yg:yang-identifier { |
| 32 | length 1..32; |
| 33 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 34 | description "The typedef for vcs-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | container vcs { |
| 38 | description "The top level container"; |
| 39 | |
| 40 | list vcs { |
| 41 | key "id"; |
| 42 | description |
| 43 | "List of virtual cellular services"; |
| 44 | |
| 45 | leaf id { |
| 46 | type vcs-id; |
| 47 | description "ID for this vcs."; |
| 48 | } |
| 49 | |
| 50 | leaf display-name { |
| 51 | type string { |
| 52 | length 1..80; |
| 53 | } |
| 54 | description "display name to use in GUI or CLI"; |
| 55 | } |
| 56 | |
| 57 | list device-group { |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 58 | key "device-group"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 59 | leaf device-group { |
| 60 | type leafref { |
| 61 | path "/dg:device-group/dg:device-group/dg:id"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 62 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 63 | description |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 64 | "Link to device group"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 65 | } |
| 66 | leaf enable { |
| 67 | type boolean; |
| 68 | default true; |
| 69 | description |
| 70 | "Enable this device group"; |
| 71 | } |
| 72 | description |
| 73 | "A list of device groups. Groups will only participate in |
| 74 | the VCS if the enable field is set to True"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 75 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 76 | |
| 77 | leaf template { |
| 78 | type leafref { |
| 79 | path "/vt:template/vt:template/vt:id"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 80 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 81 | description |
| 82 | "Link to user vcs template that was used to initialize |
| 83 | this VCS"; |
| 84 | } |
| 85 | |
| 86 | list application { |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 87 | key "application"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 88 | leaf application { |
| 89 | type leafref { |
| 90 | path "/app:application/app:application/app:id"; |
| 91 | } |
| 92 | mandatory true; |
| 93 | description |
| 94 | "Link to application"; |
| 95 | } |
| 96 | leaf allow { |
| 97 | type boolean; |
| 98 | default true; |
| 99 | description |
| 100 | "Allow or deny this application"; |
| 101 | } |
| 102 | description |
| 103 | "An ordered list of applications to allow and deny. The deny rules |
| 104 | will be executed first, followed by the allow rules. The first rule |
| 105 | to match is returned. An implicit DENY ALL lies at the end."; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 106 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 107 | |
| 108 | leaf upf { |
| 109 | type leafref { |
| 110 | path "/upf:upf/upf:upf/upf:id"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 111 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 112 | description |
| 113 | "Link to user plane that implements this vcf"; |
| 114 | } |
| 115 | |
| 116 | leaf ap { |
| 117 | type leafref { |
| 118 | path "/apl:ap-list/apl:ap-list/apl:id"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 119 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 120 | description |
| 121 | "Link to access-point list"; |
| 122 | } |
| 123 | |
| 124 | leaf description { |
| 125 | type at:description; |
| 126 | description "description of this vcs"; |
| 127 | } |
| 128 | |
| 129 | leaf enterprise { |
| 130 | type leafref { |
| 131 | path "/ent:enterprise/ent:enterprise/ent:id"; |
| 132 | } |
| 133 | mandatory true; |
| 134 | description |
| 135 | "Link to enterprise that owns this VCS"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 136 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 137 | |
| 138 | // the following are populated from the template |
| 139 | leaf sst { |
| 140 | type at:sst; |
| 141 | mandatory true; |
| 142 | description "Slice/Service type. Immutable."; |
| 143 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 144 | |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 145 | leaf sd { |
| 146 | type at:sd; |
| 147 | mandatory true; |
| 148 | description "Slice differentiator. Immutable."; |
| 149 | } |
| 150 | |
| 151 | leaf uplink { |
| 152 | type uint32; |
| 153 | description "Uplink data rate in mbps"; |
| 154 | } |
| 155 | |
| 156 | leaf downlink { |
| 157 | type uint32; |
| 158 | description "Downlink data rate in mbps"; |
| 159 | } |
| 160 | |
| 161 | leaf traffic-class { |
| 162 | type leafref { |
| 163 | path "/tc:traffic-class/tc:traffic-class/tc:id"; |
| 164 | } |
| 165 | mandatory true; |
| 166 | description |
| 167 | "Link to traffic class"; |
| 168 | } |
| 169 | // end of items populated from the template |
| 170 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 171 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 172 | } |