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-site { |
| 6 | belongs-to onf-enterprise { prefix ent; } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 7 | |
| 8 | import ietf-inet-types { prefix inet; } |
| 9 | import ietf-yang-types{ prefix yg; } |
| 10 | import onf-aether-types{ prefix at; } |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 11 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 12 | include onf-device; |
| 13 | include onf-priority-traffic-rule; |
| 14 | include onf-sim-card; |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 15 | include onf-upf; |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame^] | 16 | include onf-slice; |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 17 | include onf-device-group; |
| 18 | include onf-ip-domain; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 19 | |
| 20 | organization "Open Networking Foundation."; |
| 21 | contact "Scott Baker"; |
| 22 | description |
| 23 | "An Aether site is a location where resources are deployed."; |
| 24 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 25 | revision "2022-01-14" { |
| 26 | description "Refactored as submodule"; |
| 27 | reference "RFC 6020"; |
| 28 | } |
| 29 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 30 | revision "2021-09-10" { |
| 31 | description "An Aether Site."; |
| 32 | reference "RFC 6087"; |
| 33 | } |
| 34 | |
| 35 | typedef site-id { |
| 36 | type yg:yang-identifier { |
| 37 | length 1..32; |
| 38 | } |
| 39 | description "The typedef for site-id"; |
| 40 | } |
| 41 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 42 | grouping site { |
| 43 | description "The site grouping"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 44 | |
| 45 | list site { |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 46 | key "site-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 47 | description |
| 48 | "List of site"; |
| 49 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 50 | leaf site-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 51 | type site-id; |
| 52 | description "ID for this site."; |
| 53 | } |
| 54 | |
| 55 | leaf display-name { |
| 56 | type string { |
| 57 | length 1..80; |
| 58 | } |
| 59 | description "display name to use in GUI or CLI"; |
| 60 | } |
| 61 | |
| 62 | list small-cell { |
| 63 | key "small-cell-id"; |
| 64 | leaf small-cell-id { |
| 65 | type yg:yang-identifier; |
| 66 | description |
| 67 | "Id of small cell"; |
| 68 | } |
| 69 | leaf address { |
| 70 | type inet:host; |
| 71 | description |
| 72 | "Address of small cell"; |
| 73 | } |
| 74 | leaf tac { |
| 75 | type at:tac; |
| 76 | mandatory true; |
| 77 | description |
| 78 | "Type Allocation Code"; |
| 79 | } |
| 80 | leaf enable { |
| 81 | type boolean; |
| 82 | default true; |
| 83 | description |
| 84 | "Enable this small cell"; |
| 85 | } |
| 86 | leaf display-name { |
| 87 | type string { |
| 88 | length 1..80; |
| 89 | } |
| 90 | description "display name to use in GUI or CLI"; |
| 91 | } |
| 92 | description |
| 93 | "List of small cell addresses"; |
| 94 | } |
| 95 | |
| 96 | container monitoring { |
| 97 | leaf edge-cluster-prometheus-url { |
| 98 | type inet:uri; |
| 99 | description |
| 100 | "URL of edge cluster prometheus"; |
| 101 | } |
| 102 | leaf edge-monitoring-prometheus-url { |
| 103 | type inet:uri; |
| 104 | description |
| 105 | "URL of monitoring prometheus"; |
| 106 | } |
| 107 | list edge-device { |
| 108 | key "edge-device-id"; |
| 109 | leaf edge-device-id { |
| 110 | type yg:yang-identifier; |
| 111 | description |
| 112 | "Id of edge monitoring device"; |
| 113 | } |
| 114 | leaf display-name { |
| 115 | type string { |
| 116 | length 1..80; |
| 117 | } |
| 118 | description "display name to use in GUI or CLI"; |
| 119 | } |
| 120 | leaf description { |
| 121 | type at:description; |
| 122 | description "description of this site"; |
| 123 | } |
| 124 | description |
| 125 | "List of edge monitoring devices"; |
| 126 | } |
| 127 | description |
| 128 | "container for monitoring"; |
| 129 | } |
| 130 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 131 | container imsi-definition { |
| 132 | leaf mcc { |
| 133 | type at:mcc; |
| 134 | mandatory true; |
| 135 | description "mobile country code"; |
| 136 | } |
| 137 | leaf mnc { |
| 138 | type at:mnc; |
| 139 | mandatory true; |
| 140 | description "mobile network code"; |
| 141 | } |
| 142 | leaf enterprise { |
| 143 | type at:ent; |
| 144 | mandatory true; |
| 145 | description "enterprise-specific identifier"; |
| 146 | } |
| 147 | leaf format { |
| 148 | type string { |
| 149 | length 15; |
| 150 | } |
| 151 | mandatory true; |
| 152 | description "IMSI format specifier, describes how fields are packed into an IMSI. Must be exactly 15 characters long. For example, CCCNNNEEESSSSSS."; |
| 153 | // Format specifiers: |
| 154 | // C = MCC |
| 155 | // N = MNC |
| 156 | // E = Enterprise |
| 157 | // 0 = Forced Zero |
| 158 | // S = Subscriber ID |
| 159 | // default is |
| 160 | // 3 digit MCC |
| 161 | // 3 digit MNC |
| 162 | // 3 digit enterprise ID |
| 163 | // 5 digit subscriber ID |
| 164 | } |
| 165 | description "container for imsi-defination"; |
| 166 | } |
| 167 | |
| 168 | leaf description { |
| 169 | type at:description; |
| 170 | description "description of this site"; |
| 171 | } |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 172 | |
Scott Baker | 4fb4ba9 | 2022-01-14 13:52:01 -0800 | [diff] [blame] | 173 | uses device; |
| 174 | |
| 175 | uses priority-traffic-rule; |
| 176 | |
| 177 | uses sim-card; |
| 178 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 179 | uses upf; |
| 180 | |
Sean Condon | 24297da | 2022-01-27 09:50:34 +0000 | [diff] [blame^] | 181 | uses slice; |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 182 | |
| 183 | uses device-group; |
| 184 | |
| 185 | uses ip-domain; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 186 | } |
| 187 | } |
| 188 | } |