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