blob: 89f8fc72a1068a0429b018b66290bddac4f43534 [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 site {
6 namespace "http://opennetworking.org/aether/site";
7 prefix st;
8
9 import aether-types{ prefix at; }
10 import enterprise{ prefix ent; }
11 import ietf-yang-types{ prefix yg; }
12
13 organization "Open Networking Foundation.";
14 contact "Scott Baker";
15 description
16 "An Aether site is a location where resources are deployed.";
17
18 revision "2021-06-02" {
19 description "An Aether Site.";
20 reference "RFC 6087";
21 }
22
23 typedef site-id {
24 type yg:yang-identifier {
25 length 1..32;
26 }
27 }
28
29 container site {
30 description "The top level container";
31
32 list site {
33 key "id";
34 description
35 "List of site";
36
37 leaf id {
38 type site-id;
39 description "ID for this site.";
40 }
41
42 leaf display-name {
43 type string {
44 length 1..80;
45 }
46 description "display name to use in GUI or CLI";
47 }
48
49 leaf enterprise {
50 type leafref {
51 path "/ent:enterprise/ent:enterprise/ent:id";
52 }
53 description
54 "Link to enterprise that owns this site";
55 mandatory true;
56 }
57
58 container imsi-definition {
59 leaf mcc {
60 type at:mcc;
61 description "mobile country code";
62 mandatory true;
63 }
64 leaf mnc {
65 type at:mnc;
66 description "mobile network code";
67 mandatory true;
68 }
69 leaf enterprise {
70 type at:ent;
71 description "enterprise-specific identifier";
72 mandatory true;
73 }
74 leaf format {
75 type string {
76 length 15;
77 }
78 mandatory true;
79 description "IMSI format specifier, describes how fields are packed into an IMSI. Must be exactly 15 characters long. For example, CCCNNNEEESSSSSS.";
80 // Format specifiers:
81 // C = MCC
82 // N = MNC
83 // E = Enterprise
84 // 0 = Forced Zero
85 // S = Subscriber ID
86 // default is
87 // 3 digit MCC
88 // 3 digit MNC
89 // 3 digit enterprise ID
90 // 5 digit subscriber ID
91 }
92 }
93
94 leaf description {
95 type at:description;
96 description "description of this site";
97 }
98 }
99 }
100}