1 module org-openroadm-dhcp {
2 namespace "http://org/openroadm/dhcp";
3 prefix org-openroadm-dhcp;
5 import org-openroadm-device {
6 prefix org-openroadm-device;
7 revision-date 2020-05-29;
9 import ietf-inet-types {
10 prefix ietf-inet-types;
11 revision-date 2013-07-15;
19 "YANG definitions for dhcp protocol.
22 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
23 All other rights reserved.
25 Redistribution and use in source and binary forms, with or without modification,
26 are permitted provided that the following conditions are met:
28 * Redistributions of source code must retain the above copyright notice, this
29 list of conditions and the following disclaimer.
30 * Redistributions in binary form must reproduce the above copyright notice,
31 this list of conditions and the following disclaimer in the documentation and/or
32 other materials provided with the distribution.
33 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
34 contributors may be used to endorse or promote products derived from this software
35 without specific prior written permission.
37 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
38 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
39 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
40 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
41 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
42 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
43 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
44 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46 POSSIBILITY OF SUCH DAMAGE.";
90 container ipv4-dhcp-relay {
91 list ipv4-server-group {
92 key "server-group-name";
94 "DHCP server group configuration that DHCP relays to";
95 leaf server-group-name {
98 "Name of the server-group";
100 leaf-list interface-name {
102 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
105 "Name of the interface";
107 leaf-list server-address {
108 type ietf-inet-types:ipv4-address;
110 "List of IPv4 server addresses";
114 container ipv6-dhcp-relay {
115 list ipv6-server-group {
116 key "server-group-name";
118 "DHCP server group configuration that DHCP relays to";
119 leaf server-group-name {
122 "Name of the server-group";
124 leaf-list interface-name {
126 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
129 "Name of the interface";
131 leaf-list server-address {
132 type ietf-inet-types:ipv6-address;
134 "List of IPv6 server addresses";
140 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:protocols" {
141 when "/org-openroadm-device:org-openroadm-device/org-openroadm-device:info/org-openroadm-device:node-type='xpdr'";