Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
Sean Condon | 160ec1d | 2022-02-08 12:58:25 +0000 | [diff] [blame] | 3 | // SPDX-License-Identifier: Apache-2.0 |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 4 | |
| 5 | module onf-site { |
| 6 | namespace "http://opennetworking.org/aether/site"; |
| 7 | prefix st; |
| 8 | |
| 9 | import ietf-inet-types { prefix inet; } |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 10 | import ietf-yang-types{ prefix yg; } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 11 | import onf-aether-types{ prefix at; } |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 12 | import onf-enterprise{ prefix ent; } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 13 | |
| 14 | organization "Open Networking Foundation."; |
| 15 | contact "Scott Baker"; |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 16 | description |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 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 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 28 | description "The typedef for site-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | container site { |
| 32 | description "The top level container"; |
| 33 | |
| 34 | list site { |
| 35 | key "id"; |
| 36 | description |
| 37 | "List of site"; |
| 38 | |
| 39 | leaf id { |
| 40 | type site-id; |
| 41 | description "ID for this site."; |
| 42 | } |
| 43 | |
| 44 | leaf display-name { |
| 45 | type string { |
| 46 | length 1..80; |
| 47 | } |
| 48 | description "display name to use in GUI or CLI"; |
| 49 | } |
| 50 | |
| 51 | list small-cell { |
Scott Baker | c4b3e27 | 2021-11-01 17:13:48 -0700 | [diff] [blame] | 52 | key "small-cell-id"; |
| 53 | leaf small-cell-id { |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 54 | type yg:yang-identifier; |
| 55 | description |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 56 | "Id of small cell"; |
| 57 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 58 | leaf address { |
| 59 | type inet:host; |
| 60 | description |
| 61 | "Address of small cell"; |
| 62 | } |
| 63 | leaf tac { |
| 64 | type at:tac; |
| 65 | mandatory true; |
| 66 | description |
| 67 | "Type Allocation Code"; |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 68 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 69 | leaf enable { |
| 70 | type boolean; |
| 71 | default true; |
| 72 | description |
| 73 | "Enable this small cell"; |
| 74 | } |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 75 | leaf display-name { |
| 76 | type string { |
| 77 | length 1..80; |
| 78 | } |
| 79 | description "display name to use in GUI or CLI"; |
| 80 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 81 | description |
| 82 | "List of small cell addresses"; |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 83 | } |
Scott Baker | a692905 | 2021-10-06 08:16:03 -0700 | [diff] [blame] | 84 | |
| 85 | container monitoring { |
| 86 | leaf edge-cluster-prometheus-url { |
| 87 | type inet:uri; |
| 88 | description |
| 89 | "URL of edge cluster prometheus"; |
| 90 | } |
| 91 | leaf edge-monitoring-prometheus-url { |
| 92 | type inet:uri; |
| 93 | description |
| 94 | "URL of monitoring prometheus"; |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 95 | } |
Scott Baker | a692905 | 2021-10-06 08:16:03 -0700 | [diff] [blame] | 96 | list edge-device { |
Scott Baker | c4b3e27 | 2021-11-01 17:13:48 -0700 | [diff] [blame] | 97 | key "edge-device-id"; |
| 98 | leaf edge-device-id { |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 99 | type yg:yang-identifier; |
Scott Baker | a692905 | 2021-10-06 08:16:03 -0700 | [diff] [blame] | 100 | description |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 101 | "Id of edge monitoring device"; |
Scott Baker | a692905 | 2021-10-06 08:16:03 -0700 | [diff] [blame] | 102 | } |
| 103 | leaf display-name { |
| 104 | type string { |
| 105 | length 1..80; |
| 106 | } |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 107 | description "display name to use in GUI or CLI"; |
Scott Baker | a692905 | 2021-10-06 08:16:03 -0700 | [diff] [blame] | 108 | } |
| 109 | leaf description { |
| 110 | type at:description; |
| 111 | description "description of this site"; |
| 112 | } |
| 113 | description |
| 114 | "List of edge monitoring devices"; |
| 115 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 116 | description |
| 117 | "container for monitoring"; |
Scott Baker | a692905 | 2021-10-06 08:16:03 -0700 | [diff] [blame] | 118 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 119 | |
| 120 | leaf enterprise { |
| 121 | type leafref { |
| 122 | path "/ent:enterprise/ent:enterprise/ent:id"; |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 123 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 124 | mandatory true; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 125 | description |
| 126 | "Link to enterprise that owns this site"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 127 | } |
| 128 | |
| 129 | container imsi-definition { |
| 130 | leaf mcc { |
| 131 | type at:mcc; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 132 | mandatory true; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 133 | description "mobile country code"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 134 | } |
| 135 | leaf mnc { |
| 136 | type at:mnc; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 137 | mandatory true; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 138 | description "mobile network code"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 139 | } |
| 140 | leaf enterprise { |
| 141 | type at:ent; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 142 | mandatory true; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 143 | description "enterprise-specific identifier"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 144 | } |
| 145 | leaf format { |
| 146 | type string { |
| 147 | length 15; |
| 148 | } |
| 149 | mandatory true; |
| 150 | description "IMSI format specifier, describes how fields are packed into an IMSI. Must be exactly 15 characters long. For example, CCCNNNEEESSSSSS."; |
| 151 | // Format specifiers: |
| 152 | // C = MCC |
| 153 | // N = MNC |
| 154 | // E = Enterprise |
| 155 | // 0 = Forced Zero |
| 156 | // S = Subscriber ID |
| 157 | // default is |
| 158 | // 3 digit MCC |
| 159 | // 3 digit MNC |
| 160 | // 3 digit enterprise ID |
| 161 | // 5 digit subscriber ID |
| 162 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 163 | description "container for imsi-defination"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 164 | } |
| 165 | |
| 166 | leaf description { |
| 167 | type at:description; |
| 168 | description "description of this site"; |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 169 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 170 | } |
Scott Baker | ebb99ae | 2021-11-01 15:34:51 -0700 | [diff] [blame] | 171 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 172 | } |