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