blob: 74a6b804eb17a778b80ab7a34680c6969fdda18a [file] [log] [blame]
Scott Bakerc9d3d842021-09-17 11:32:53 -07001// SPDX-FileCopyrightText: 2021 Open Networking Foundation
2//
3// SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
4
5module onf-site {
6 namespace "http://opennetworking.org/aether/site";
7 prefix st;
8
9 import ietf-inet-types { prefix inet; }
10 import ietf-yang-types{ prefix yg; }
11 import onf-aether-types{ prefix at; }
12 import onf-enterprise{ prefix ent; }
13
14 organization "Open Networking Foundation.";
15 contact "Scott Baker";
16 description
17 "An Aether site is a location where resources are deployed.";
18
19 revision "2021-09-10" {
20 description "An Aether Site.";
21 reference "RFC 6087";
22 }
23
24 typedef site-id {
25 type yg:yang-identifier {
26 length 1..32;
27 }
28 }
29
30 container site {
31 description "The top level container";
32
33 list site {
34 key "id";
35 description
36 "List of site";
37
38 leaf id {
39 type site-id;
40 description "ID for this site.";
41 }
42
43 leaf display-name {
44 type string {
45 length 1..80;
46 }
47 description "display name to use in GUI or CLI";
48 }
49
50 list small-cell {
51 key "name";
52 leaf name {
53 type yg:yang-identifier;
54 description
55 "Name of small cell";
56 }
57 leaf address {
58 type inet:host;
59 description
60 "Address of small cell";
61 }
62 leaf tac {
63 type at:tac;
64 mandatory true;
65 description
66 "Type Allocation Code";
67 }
68 leaf enable {
69 type boolean;
70 default true;
71 description
72 "Enable this small cell";
73 }
74 description
75 "List of small cell addresses";
76 }
77
78 leaf enterprise {
79 type leafref {
80 path "/ent:enterprise/ent:enterprise/ent:id";
81 }
82 description
83 "Link to enterprise that owns this site";
84 mandatory true;
85 }
86
87 container imsi-definition {
88 leaf mcc {
89 type at:mcc;
90 description "mobile country code";
91 mandatory true;
92 }
93 leaf mnc {
94 type at:mnc;
95 description "mobile network code";
96 mandatory true;
97 }
98 leaf enterprise {
99 type at:ent;
100 description "enterprise-specific identifier";
101 mandatory true;
102 }
103 leaf format {
104 type string {
105 length 15;
106 }
107 mandatory true;
108 description "IMSI format specifier, describes how fields are packed into an IMSI. Must be exactly 15 characters long. For example, CCCNNNEEESSSSSS.";
109 // Format specifiers:
110 // C = MCC
111 // N = MNC
112 // E = Enterprise
113 // 0 = Forced Zero
114 // S = Subscriber ID
115 // default is
116 // 3 digit MCC
117 // 3 digit MNC
118 // 3 digit enterprise ID
119 // 5 digit subscriber ID
120 }
121 }
122
123 leaf description {
124 type at:description;
125 description "description of this site";
126 }
127 }
128 }
129}