3 namespace "urn:o-ran:dhcp:1.0";
6 import ietf-interfaces {
10 import ietf-inet-types {
14 import ietf-dhcpv6-types {
16 revision-date 2018-01-30;
19 organization "O-RAN Alliance";
25 "This module defines the YANG definitions for managng the DHCP client.
27 Copyright 2019 the O-RAN alliance.
29 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
30 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
33 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39 POSSIBILITY OF SUCH DAMAGE.
41 Redistribution and use in source and binary forms, with or without
42 modification, are permitted provided that the following conditions are met:
44 * Redistributions of source code must retain the above copyright notice,
45 this list of conditions and the above disclaimer.
46 * Redistributions in binary form must reproduce the above copyright notice,
47 this list of conditions and the above disclaimer in the documentation
48 and/or other materials provided with the distribution.
49 * Neither the Members of the O-RAN Alliance nor the names of its
50 contributors may be used to endorse or promote products derived from
51 this software without specific prior written permission.";
53 revision "2019-05-25" {
57 1) backward compatible changes to introduce reporting of 3GPP
58 discovered MV-PnP information, including CA/RA Servers and SeGW ";
60 reference "ORAN-WG4.M.0-v01.00";
63 revision "2019-03-07" {
67 1) backward compatible changes to introduce groupings.";
69 reference "ORAN-WG4.M.0-v01.00";
72 revision "2019-02-04" {
76 1) imported model from xRAN
77 2) changed namespace and reference from xran to o-ran";
79 reference "ORAN-WG4.M.0-v01.00";
82 typedef netconf-client-id {
87 description "A NETCONF client identifier";
90 typedef ca-ra-server-id {
95 description "A CA/RA Server identifier";
100 type inet:ip-address;
103 description "A SeGW identifier";
106 grouping ca-ra-servers {
108 "The CA/RA servers discovered using DHCP, discovered using the 3GPP
109 defined options in 3GPP 32.509 in vendor specific option 43/17";
112 description "A list of IP addresses or URIs for CA/RA Servers";
115 type ca-ra-server-id;
116 description "the server identifier";
119 type inet:port-number;
120 description "an optional (non-default) port";
125 "ASCII string representing the path to the CMP server directory.
126 A CMP server may be located in an arbitrary path other than root.";
131 "ASCII string representing the subject name of the CA/RA. ";
142 grouping security-gateways {
144 "The security gateways discovered using DHCP, discovered using the 3GPP
145 defined options in 3GPP 32.509 in vendor specific option 43/17";
148 description "A list of IP addresses or URIs for SeGW";
152 description "the SeGW identifier";
158 grouping netconf-clients {
160 "The netconf clients discovered using DHCP, discovered using the IANA
161 defined options or O-RAN defined syntax for encoding IP adresses or FQDNs
162 in vendor specific option 43/17";
163 list netconf-clients{
165 description "A list of IP addresses or URIs for NETCONF clients";
167 type netconf-client-id;
168 description "the client identifier";
171 type inet:port-number;
172 description "an optional (non-default) port";
177 grouping dhcpv4-option {
178 description "DHCPv4 Configuration options";
180 leaf dhcp-server-identifier {
181 type inet:ip-address;
182 description "DHCP server identifier";
186 description "Name of the domain";
188 leaf-list domain-name-servers {
189 type inet:ip-address;
190 description "A list of DNS servers";
196 description "Minimum Transmission Unit (MTU) of the interface";
198 leaf-list default-gateways{
199 type inet:ip-address;
200 description "the list of default gateways on the O-RUs subnet";
202 uses netconf-clients;
204 uses security-gateways;
207 grouping dhcpv6-option {
208 description "DHCPv6 Configuration options";
210 container dhcp-server-identifier{
211 description "dhcpv6 server identifief";
212 uses dhcpv6-type:duid;
216 description "Name of the domain";
218 leaf-list domain-name-servers {
219 type inet:ip-address;
220 description "A list of DNS servers";
222 uses netconf-clients;
224 uses security-gateways;
227 grouping dhcp-group {
230 description "Interface configuration";
233 type if:interface-ref;
234 description "Name of the interface";
238 description "DHCPv4 information";
241 description "DHCP client identifier";
246 description "DHCPv6 information";
247 container dhcp-client-identifier{
248 description "dhcpv6 client identifief";
249 uses dhcpv6-type:duid;
255 container m-plane-dhcp {
256 description "leafs covering off DHCP aspects of m-plane operations";
257 leaf private-enterprise-number {
260 description "the private enteprise number allocated to O-RAN Alliance";
262 leaf vendor-class-data {
265 "The string used in DHCPv4 option 60 or DHCPv4 option 124 and
272 // Top Level Container
277 "DHCP client configuration";