1 module org-openroadm-lldp {
2 namespace "http://org/openroadm/lldp";
3 prefix org-openroadm-lldp;
5 import ietf-inet-types {
7 revision-date 2013-07-15;
9 import org-openroadm-device {
10 prefix org-openroadm-device;
11 revision-date 2020-05-29;
13 import iana-afn-safi {
15 revision-date 2013-07-04;
17 import org-openroadm-resource-types {
18 prefix org-openroadm-resource-types;
19 revision-date 2019-11-29;
21 import ietf-yang-types {
23 revision-date 2013-07-15;
31 "YANG definitions for lldp protocol.
33 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
34 All other rights reserved.
36 Redistribution and use in source and binary forms, with or without modification,
37 are permitted provided that the following conditions are met:
39 * Redistributions of source code must retain the above copyright notice, this
40 list of conditions and the following disclaimer.
41 * Redistributions in binary form must reproduce the above copyright notice,
42 this list of conditions and the following disclaimer in the documentation and/or
43 other materials provided with the distribution.
44 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
45 contributors may be used to endorse or promote products derived from this software
46 without specific prior written permission.
48 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
49 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
50 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
51 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
52 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
53 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
54 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
55 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
56 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
57 POSSIBILITY OF SUCH DAMAGE.";
103 revision 2017-09-29 {
107 revision 2017-07-28 {
109 "Version 2.0.1 - added revision-date to imports";
111 revision 2017-06-26 {
115 revision 2016-10-14 {
120 grouping nbr-info-grp {
122 "Display LLDP Neighbour ";
126 "remote neighbour system name";
128 leaf remoteMgmtAddressSubType {
129 type ianaaf:address-family;
131 "remote neighbour Management Address Subtype Enumeration";
133 leaf remoteMgmtAddress {
134 type inet:ip-address;
136 "remote neighbour management address";
138 leaf remotePortIdSubType {
148 "Interface Alias (IfAlias - IETF RFC 2863) ";
153 "Port component (EntPhysicalAlias IETF RFC 4133)";
158 "MAC address (IEEE Std 802) ";
160 enum networkaddress {
168 "Interface Name (ifName - IETF RFC 2863)";
170 enum agentcircuitid {
173 "Agent Circuit Id (IETF RFC 3046)";
182 "remote neighbour Port ID Subtype Enumeration";
187 "remote neighbour port Id";
189 leaf remoteChassisIdSubType {
196 enum chassiscomponent {
199 "Chassis component (EntPhysicalAlias IETF RFC 4133)";
204 "Interface Alias (IfAlias - IETF RFC 2863) ";
209 "Port component (EntPhysicalAlias IETF RFC 4133)";
214 "MAC address (IEEE Std 802) ";
216 enum networkaddress {
224 "Interface Name (ifName - IETF RFC 2863)";
233 "Chassis ID Subtype Enumeration";
235 leaf remoteChassisId {
238 "remote neighbour Chassis Id";
242 grouping lldp-container {
245 "LLDP configurable and retrievable";
246 container global-config {
248 "LLDP global configurations";
254 "Disable the LLDP feature per NE";
259 "Enable the LLDP feature per NE";
264 "LLDP feature Enable/Disable per NE";
272 "LLDP frame Retransmit Interval in seconds";
274 leaf msgTxHoldMultiplier {
280 "TTL value for the TLVs transmitter over wire in seconds";
286 "LLDP port configurations";
289 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
292 "Ethernet interface name where LLDP runs";
299 "Disables the LLDP frames transmit and receive on specific interface";
304 "Enable Transmit and Receive LLDP frames on specific interface";
309 "LLDP enable per port basis";
315 "LLDP Oper data - Neighbour List information";
321 "Ethernet interface name where LLDP runs";
329 notification lldp-nbr-info-change {
331 "LLDP: Neighbor Information Changed
333 remoteSysMgmtAddressSubType
337 remoteChassisIdSubType
339 All of the above attributes are sent in event";
340 leaf notification-type {
341 type org-openroadm-resource-types:resource-notification-type;
344 type org-openroadm-resource-types:resource-type-enum;
346 "resource-type for this notification is interface";
351 "resource interface-name";
357 type yang:date-and-time;
361 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:protocols" {
362 when "/org-openroadm-device:org-openroadm-device/org-openroadm-device:info/org-openroadm-device:node-type='rdm' or /org-openroadm-device:org-openroadm-device/org-openroadm-device:info/org-openroadm-device:node-type='ila'";