blob: 8e63c00db77f596e246565fa3b8b7273613dcc10 [file] [log] [blame]
Scott Bakerfdbad762022-01-03 16:00:45 -08001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
3// SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
Sean Condon11d6f422022-01-14 13:02:03 +00005submodule onf-site {
6 belongs-to onf-enterprise { prefix ent; }
Scott Bakerfdbad762022-01-03 16:00:45 -08007
8 import ietf-inet-types { prefix inet; }
9 import ietf-yang-types{ prefix yg; }
10 import onf-aether-types{ prefix at; }
Sean Condon11d6f422022-01-14 13:02:03 +000011
Scott Baker4fb4ba92022-01-14 13:52:01 -080012 include onf-device;
13 include onf-priority-traffic-rule;
14 include onf-sim-card;
Sean Condon11d6f422022-01-14 13:02:03 +000015 include onf-upf;
Sean Condon24297da2022-01-27 09:50:34 +000016 include onf-slice;
Sean Condon11d6f422022-01-14 13:02:03 +000017 include onf-device-group;
18 include onf-ip-domain;
Scott Bakerfdbad762022-01-03 16:00:45 -080019
20 organization "Open Networking Foundation.";
21 contact "Scott Baker";
22 description
23 "An Aether site is a location where resources are deployed.";
24
Sean Condon11d6f422022-01-14 13:02:03 +000025 revision "2022-01-14" {
26 description "Refactored as submodule";
27 reference "RFC 6020";
28 }
29
Scott Bakerfdbad762022-01-03 16:00:45 -080030 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 Condon11d6f422022-01-14 13:02:03 +000042 grouping site {
43 description "The site grouping";
Scott Bakerfdbad762022-01-03 16:00:45 -080044
45 list site {
Sean Condon11d6f422022-01-14 13:02:03 +000046 key "site-id";
Scott Bakerfdbad762022-01-03 16:00:45 -080047 description
48 "List of site";
49
Sean Condon11d6f422022-01-14 13:02:03 +000050 leaf site-id {
Scott Bakerfdbad762022-01-03 16:00:45 -080051 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 Bakerfdbad762022-01-03 16:00:45 -0800131 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 Condon11d6f422022-01-14 13:02:03 +0000172
Scott Baker4fb4ba92022-01-14 13:52:01 -0800173 uses device;
174
175 uses priority-traffic-rule;
176
177 uses sim-card;
178
Sean Condon11d6f422022-01-14 13:02:03 +0000179 uses upf;
180
Sean Condon24297da2022-01-27 09:50:34 +0000181 uses slice;
Sean Condon11d6f422022-01-14 13:02:03 +0000182
183 uses device-group;
184
185 uses ip-domain;
Scott Bakerfdbad762022-01-03 16:00:45 -0800186 }
187 }
188}