Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 1 | // SPDX-FileCopyrightText: 2021 Open Networking Foundation |
| 2 | // |
| 3 | // SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 5 | submodule onf-ip-domain { |
| 6 | belongs-to onf-enterprise { prefix ent; } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 7 | |
| 8 | import ietf-inet-types { prefix inet; } |
| 9 | import ietf-yang-types{ prefix yg; } |
| 10 | import onf-aether-types { prefix at; } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 11 | |
| 12 | organization "Open Networking Foundation."; |
| 13 | contact "Scott Baker"; |
| 14 | description |
| 15 | "An Aether IP-Domain. This is a list of available subnets |
| 16 | that may be assigned to UEs, as well as DNS servers and other |
| 17 | metadata"; |
| 18 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 19 | revision "2022-01-14" { |
| 20 | description "Refactored as submodule"; |
| 21 | reference "RFC 6020"; |
| 22 | } |
| 23 | |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 24 | revision "2021-06-02" { |
| 25 | description "An Aether IP and Domain Specification"; |
| 26 | reference "RFC 6087"; |
| 27 | } |
| 28 | |
| 29 | typedef ip-domain-id { |
| 30 | type yg:yang-identifier { |
| 31 | length 1..32; |
| 32 | } |
| 33 | description "The typedef for ip-domain-id"; |
| 34 | } |
| 35 | |
Sean Condon | 11d6f42 | 2022-01-14 13:02:03 +0000 | [diff] [blame] | 36 | grouping ip-domain { |
| 37 | description "The ip-domain grouping"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 38 | |
| 39 | list ip-domain { |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 40 | key "ip-domain-id"; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 41 | description |
| 42 | "List of ip domains"; |
| 43 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 44 | leaf ip-domain-id { |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 45 | type ip-domain-id; |
| 46 | description "ID for this ip domain."; |
| 47 | } |
| 48 | |
Sean Condon | 9f7966e | 2022-02-03 10:55:06 +0000 | [diff] [blame] | 49 | uses at:desc-display-name; |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 50 | |
| 51 | leaf dnn { |
| 52 | type at:dnn; |
| 53 | mandatory true; |
| 54 | description "DNN/APN"; |
| 55 | } |
| 56 | |
| 57 | leaf dns-primary { |
| 58 | type inet:ip-address; |
| 59 | description "primary dns server name"; |
| 60 | } |
| 61 | |
| 62 | leaf dns-secondary { |
| 63 | type inet:ip-address; |
| 64 | description "secondary dns server name"; |
| 65 | } |
| 66 | |
| 67 | // Note: Cannot use a subnet as a list key. Dropped support from a |
| 68 | // list of subnets to a single subnet. Revisit in the future. |
| 69 | leaf subnet { |
| 70 | type inet:ipv4-prefix; |
| 71 | mandatory true; |
| 72 | description "subnet to allocate ip addresses from"; |
| 73 | } |
| 74 | |
| 75 | leaf admin-status { |
| 76 | type at:admin-status; |
| 77 | description "administrative status"; |
| 78 | } |
| 79 | |
| 80 | leaf mtu { |
| 81 | type at:mtu; |
| 82 | description "maximum transmission unit"; |
| 83 | } |
Scott Baker | fdbad76 | 2022-01-03 16:00:45 -0800 | [diff] [blame] | 84 | } |
| 85 | } |
| 86 | } |