blob: 3a4e333c70e371a40c3dae3615b3c347a8ac0af0 [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;
Scott Baker4fb4ba92022-01-14 13:52:01 -080013 include onf-sim-card;
Sean Condon11d6f422022-01-14 13:02:03 +000014 include onf-upf;
Sean Condon24297da2022-01-27 09:50:34 +000015 include onf-slice;
Sean Condon11d6f422022-01-14 13:02:03 +000016 include onf-device-group;
17 include onf-ip-domain;
Scott Bakerfdbad762022-01-03 16:00:45 -080018
19 organization "Open Networking Foundation.";
20 contact "Scott Baker";
21 description
22 "An Aether site is a location where resources are deployed.";
23
Sean Condon11d6f422022-01-14 13:02:03 +000024 revision "2022-01-14" {
25 description "Refactored as submodule";
26 reference "RFC 6020";
27 }
28
Scott Bakerfdbad762022-01-03 16:00:45 -080029 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 Condon11d6f422022-01-14 13:02:03 +000041 grouping site {
42 description "The site grouping";
Scott Bakerfdbad762022-01-03 16:00:45 -080043
44 list site {
Sean Condon11d6f422022-01-14 13:02:03 +000045 key "site-id";
Scott Bakerfdbad762022-01-03 16:00:45 -080046 description
47 "List of site";
48
Sean Condon11d6f422022-01-14 13:02:03 +000049 leaf site-id {
Scott Bakerfdbad762022-01-03 16:00:45 -080050 type site-id;
51 description "ID for this site.";
52 }
53
Sean Condon9f7966e2022-02-03 10:55:06 +000054 uses at:desc-display-name;
Scott Bakerfdbad762022-01-03 16:00:45 -080055
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 Condon9f7966e2022-02-03 10:55:06 +000063
64 uses at:desc-display-name;
65
Scott Bakerfdbad762022-01-03 16:00:45 -080066 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 Bakerfdbad762022-01-03 16:00:45 -080083 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 Condon9f7966e2022-02-03 10:55:06 +0000105 uses at:desc-display-name;
106
Scott Bakerfdbad762022-01-03 16:00:45 -0800107 description
108 "List of edge monitoring devices";
109 }
110 description
111 "container for monitoring";
112 }
113
Scott Bakerfdbad762022-01-03 16:00:45 -0800114 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 Baker4fb4ba92022-01-14 13:52:01 -0800151 uses device;
152
Scott Baker4fb4ba92022-01-14 13:52:01 -0800153 uses sim-card;
154
Sean Condon11d6f422022-01-14 13:02:03 +0000155 uses upf;
156
Sean Condon24297da2022-01-27 09:50:34 +0000157 uses slice;
Sean Condon11d6f422022-01-14 13:02:03 +0000158
159 uses device-group;
160
161 uses ip-domain;
Scott Bakerfdbad762022-01-03 16:00:45 -0800162 }
163 }
164}