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 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"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 15 | description |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 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 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 27 | description "The typedef for site-id"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 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 | leaf enterprise { |
| 51 | type leafref { |
| 52 | path "/ent:enterprise/ent:enterprise/ent:id"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 53 | } |
| 54 | mandatory true; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 55 | description |
| 56 | "Link to enterprise that owns this site"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | container imsi-definition { |
| 60 | leaf mcc { |
| 61 | type at:mcc; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 62 | mandatory true; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 63 | description "mobile country code"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 64 | } |
| 65 | leaf mnc { |
| 66 | type at:mnc; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 67 | mandatory true; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 68 | description "mobile network code"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 69 | } |
| 70 | leaf enterprise { |
| 71 | type at:ent; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 72 | mandatory true; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 73 | description "enterprise-specific identifier"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 74 | } |
| 75 | leaf format { |
| 76 | type string { |
| 77 | length 15; |
| 78 | } |
| 79 | mandatory true; |
| 80 | description "IMSI format specifier, describes how fields are packed into an IMSI. Must be exactly 15 characters long. For example, CCCNNNEEESSSSSS."; |
| 81 | // Format specifiers: |
| 82 | // C = MCC |
| 83 | // N = MNC |
| 84 | // E = Enterprise |
| 85 | // 0 = Forced Zero |
| 86 | // S = Subscriber ID |
| 87 | // default is |
| 88 | // 3 digit MCC |
| 89 | // 3 digit MNC |
| 90 | // 3 digit enterprise ID |
| 91 | // 5 digit subscriber ID |
| 92 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 93 | description "The container for imsi-definition"; |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 94 | } |
| 95 | |
| 96 | leaf description { |
| 97 | type at:description; |
| 98 | description "description of this site"; |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 99 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 100 | } |
PUSHP RAJ | ba2e32f | 2021-11-02 10:39:24 +0000 | [diff] [blame] | 101 | } |
Scott Baker | c9d3d84 | 2021-09-17 11:32:53 -0700 | [diff] [blame] | 102 | } |