blob: 2b782ff5776b1345e2850b952450d75224afff31 [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
12 include onf-upf;
13 include onf-vcs;
14 include onf-device-group;
15 include onf-ip-domain;
Scott Bakerfdbad762022-01-03 16:00:45 -080016
17 organization "Open Networking Foundation.";
18 contact "Scott Baker";
19 description
20 "An Aether site is a location where resources are deployed.";
21
Sean Condon11d6f422022-01-14 13:02:03 +000022 revision "2022-01-14" {
23 description "Refactored as submodule";
24 reference "RFC 6020";
25 }
26
Scott Bakerfdbad762022-01-03 16:00:45 -080027 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 Condon11d6f422022-01-14 13:02:03 +000039 grouping site {
40 description "The site grouping";
Scott Bakerfdbad762022-01-03 16:00:45 -080041
42 list site {
Sean Condon11d6f422022-01-14 13:02:03 +000043 key "site-id";
Scott Bakerfdbad762022-01-03 16:00:45 -080044 description
45 "List of site";
46
Sean Condon11d6f422022-01-14 13:02:03 +000047 leaf site-id {
Scott Bakerfdbad762022-01-03 16:00:45 -080048 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 Bakerfdbad762022-01-03 16:00:45 -0800128 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 Condon11d6f422022-01-14 13:02:03 +0000169
170 uses upf;
171
172 uses vcs;
173
174 uses device-group;
175
176 uses ip-domain;
Scott Bakerfdbad762022-01-03 16:00:45 -0800177 }
178 }
179}