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 2018-10-19;
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 2018-10-19;
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 AT&T Intellectual Property. 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.";
73 "Version 2.0.1 - added revision-date to imports";
84 grouping nbr-info-grp {
86 "Display LLDP Neighbour ";
90 "remote neighbour system name";
92 leaf remoteMgmtAddressSubType {
93 type ianaaf:address-family;
95 "remote neighbour Management Address Subtype Enumeration";
97 leaf remoteMgmtAddress {
100 "remote neighbour management address";
102 leaf remotePortIdSubType {
112 "Interface Alias (IfAlias - IETF RFC 2863) ";
114 enum "portcomponent" {
117 "Port component (EntPhysicalAlias IETF RFC 4133)";
122 "MAC address (IEEE Std 802) ";
124 enum "networkaddress" {
132 "Interface Name (ifName - IETF RFC 2863)";
134 enum "agentcircuitid" {
137 "Agent Circuit Id (IETF RFC 3046)";
146 "remote neighbour Port ID Subtype Enumeration";
151 "remote neighbour port Id";
153 leaf remoteChassisIdSubType {
160 enum "chassiscomponent" {
163 "Chassis component (EntPhysicalAlias IETF RFC 4133)";
168 "Interface Alias (IfAlias - IETF RFC 2863) ";
170 enum "portcomponent" {
173 "Port component (EntPhysicalAlias IETF RFC 4133)";
178 "MAC address (IEEE Std 802) ";
180 enum "networkaddress" {
188 "Interface Name (ifName - IETF RFC 2863)";
197 "Chassis ID Subtype Enumeration";
199 leaf remoteChassisId {
202 "remote neighbour Chassis Id";
206 grouping lldp-container {
209 "LLDP configurable and retrievable";
210 container global-config {
212 "LLDP global configurations";
218 "Disable the LLDP feature per NE";
223 "Enable the LLDP feature per NE";
228 "LLDP feature Enable/Disable per NE";
236 "LLDP frame Retransmit Interval in seconds";
238 leaf msgTxHoldMultiplier {
244 "TTL value for the TLVs transmitter over wire in seconds";
250 "LLDP port configurations";
253 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
256 "Ethernet interface name where LLDP runs";
263 "Disables the LLDP frames transmit and receive on specific interface";
268 "Enable Transmit and Receive LLDP frames on specific interface";
273 "LLDP enable per port basis";
279 "LLDP Oper data - Neighbour List information";
285 "Ethernet interface name where LLDP runs";
293 notification lldp-nbr-info-change {
295 "LLDP: Neighbor Information Changed
297 remoteSysMgmtAddressSubType
301 remoteChassisIdSubType
303 All of the above attributes are sent in event";
304 leaf notification-type {
305 type org-openroadm-resource-types:resource-notification-type;
308 type org-openroadm-resource-types:resource-type-enum;
310 "resource-type for this notification is interface";
315 "resource interface-name";
321 type yang:date-and-time;
324 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:protocols" {
325 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'";