blob: ae89379cc27611bf935d596bb58a237a8258ebb4 [file] [log] [blame]
Scott Bakerfdbad762022-01-03 16:00:45 -08001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
Sean Condon160ec1d2022-02-08 12:58:25 +00003// SPDX-License-Identifier: Apache-2.0
Scott Bakerfdbad762022-01-03 16:00:45 -08004
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; }
Scott Bakerfdbad762022-01-03 16:00:45 -08009 import onf-aether-types{ prefix at; }
Sean Condon11d6f422022-01-14 13:02:03 +000010
Scott Baker4fb4ba92022-01-14 13:52:01 -080011 include onf-device;
Scott Baker4fb4ba92022-01-14 13:52:01 -080012 include onf-sim-card;
Sean Condon11d6f422022-01-14 13:02:03 +000013 include onf-upf;
Sean Condon24297da2022-01-27 09:50:34 +000014 include onf-slice;
Sean Condon11d6f422022-01-14 13:02:03 +000015 include onf-device-group;
16 include onf-ip-domain;
Scott Bakerfdbad762022-01-03 16:00:45 -080017
18 organization "Open Networking Foundation.";
19 contact "Scott Baker";
20 description
21 "An Aether site is a location where resources are deployed.";
22
Sean Condon11d6f422022-01-14 13:02:03 +000023 revision "2022-01-14" {
24 description "Refactored as submodule";
25 reference "RFC 6020";
26 }
27
Scott Bakerfdbad762022-01-03 16:00:45 -080028 revision "2021-09-10" {
29 description "An Aether Site.";
30 reference "RFC 6087";
31 }
32
33 typedef site-id {
Scott Baker40a79562022-02-16 15:04:50 -080034 type at:aether-identifier;
Scott Bakerfdbad762022-01-03 16:00:45 -080035 description "The typedef for site-id";
36 }
37
Sean Condon11d6f422022-01-14 13:02:03 +000038 grouping site {
39 description "The site grouping";
Scott Bakerfdbad762022-01-03 16:00:45 -080040
41 list site {
Sean Condon11d6f422022-01-14 13:02:03 +000042 key "site-id";
Scott Bakerfdbad762022-01-03 16:00:45 -080043 description
44 "List of site";
45
Sean Condon11d6f422022-01-14 13:02:03 +000046 leaf site-id {
Scott Bakerfdbad762022-01-03 16:00:45 -080047 type site-id;
48 description "ID for this site.";
49 }
50
Sean Condon9f7966e2022-02-03 10:55:06 +000051 uses at:desc-display-name;
Scott Bakerfdbad762022-01-03 16:00:45 -080052
53 list small-cell {
54 key "small-cell-id";
55 leaf small-cell-id {
Scott Baker40a79562022-02-16 15:04:50 -080056 type at:aether-identifier;
Scott Bakerfdbad762022-01-03 16:00:45 -080057 description
58 "Id of small cell";
59 }
Sean Condon9f7966e2022-02-03 10:55:06 +000060
61 uses at:desc-display-name;
62
Scott Bakerfdbad762022-01-03 16:00:45 -080063 leaf address {
64 type inet:host;
65 description
66 "Address of small cell";
67 }
68 leaf tac {
69 type at:tac;
70 mandatory true;
71 description
72 "Type Allocation Code";
73 }
74 leaf enable {
75 type boolean;
76 default true;
77 description
78 "Enable this small cell";
79 }
Scott Bakerfdbad762022-01-03 16:00:45 -080080 description
81 "List of small cell addresses";
82 }
83
84 container monitoring {
85 leaf edge-cluster-prometheus-url {
86 type inet:uri;
87 description
88 "URL of edge cluster prometheus";
89 }
90 leaf edge-monitoring-prometheus-url {
91 type inet:uri;
92 description
93 "URL of monitoring prometheus";
94 }
95 list edge-device {
96 key "edge-device-id";
97 leaf edge-device-id {
Scott Baker40a79562022-02-16 15:04:50 -080098 type at:aether-identifier;
Scott Bakerfdbad762022-01-03 16:00:45 -080099 description
100 "Id of edge monitoring device";
101 }
Sean Condon9f7966e2022-02-03 10:55:06 +0000102 uses at:desc-display-name;
103
Scott Bakerfdbad762022-01-03 16:00:45 -0800104 description
105 "List of edge monitoring devices";
106 }
107 description
108 "container for monitoring";
109 }
110
Scott Bakerfdbad762022-01-03 16:00:45 -0800111 container imsi-definition {
112 leaf mcc {
113 type at:mcc;
114 mandatory true;
115 description "mobile country code";
116 }
117 leaf mnc {
118 type at:mnc;
119 mandatory true;
120 description "mobile network code";
121 }
122 leaf enterprise {
123 type at:ent;
124 mandatory true;
125 description "enterprise-specific identifier";
126 }
127 leaf format {
128 type string {
129 length 15;
130 }
131 mandatory true;
132 description "IMSI format specifier, describes how fields are packed into an IMSI. Must be exactly 15 characters long. For example, CCCNNNEEESSSSSS.";
133 // Format specifiers:
134 // C = MCC
135 // N = MNC
136 // E = Enterprise
137 // 0 = Forced Zero
138 // S = Subscriber ID
139 // default is
140 // 3 digit MCC
141 // 3 digit MNC
142 // 3 digit enterprise ID
143 // 5 digit subscriber ID
144 }
145 description "container for imsi-defination";
146 }
147
Scott Baker4fb4ba92022-01-14 13:52:01 -0800148 uses device;
149
Scott Baker4fb4ba92022-01-14 13:52:01 -0800150 uses sim-card;
151
Sean Condon11d6f422022-01-14 13:02:03 +0000152 uses upf;
153
Sean Condon24297da2022-01-27 09:50:34 +0000154 uses slice;
Sean Condon11d6f422022-01-14 13:02:03 +0000155
156 uses device-group;
157
158 uses ip-domain;
Scott Bakerfdbad762022-01-03 16:00:45 -0800159 }
160 }
161}