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 2017-12-15;
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 2017-12-15;
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.";
69 "Version 2.0.1 - added revision-date to imports";
80 grouping nbr-info-grp {
82 "Display LLDP Neighbour ";
86 "remote neighbour system name";
88 leaf remoteMgmtAddressSubType {
89 type ianaaf:address-family;
91 "remote neighbour Management Address Subtype Enumeration";
93 leaf remoteMgmtAddress {
96 "remote neighbour management address";
98 leaf remotePortIdSubType {
108 "Interface Alias (IfAlias - IETF RFC 2863) ";
110 enum "portcomponent" {
113 "Port component (EntPhysicalAlias IETF RFC 4133)";
118 "MAC address (IEEE Std 802) ";
120 enum "networkaddress" {
128 "Interface Name (ifName - IETF RFC 2863)";
130 enum "agentcircuitid" {
133 "Agent Circuit Id (IETF RFC 3046)";
142 "remote neighbour Port ID Subtype Enumeration";
147 "remote neighbour port Id";
149 leaf remoteChassisIdSubType {
156 enum "chassiscomponent" {
159 "Chassis component (EntPhysicalAlias IETF RFC 4133)";
164 "Interface Alias (IfAlias - IETF RFC 2863) ";
166 enum "portcomponent" {
169 "Port component (EntPhysicalAlias IETF RFC 4133)";
174 "MAC address (IEEE Std 802) ";
176 enum "networkaddress" {
184 "Interface Name (ifName - IETF RFC 2863)";
193 "Chassis ID Subtype Enumeration";
195 leaf remoteChassisId {
198 "remote neighbour Chassis Id";
202 grouping lldp-container {
205 "LLDP configurable and retrievable";
206 container global-config {
208 "LLDP global configurations";
214 "Disable the LLDP feature per NE";
219 "Enable the LLDP feature per NE";
224 "LLDP feature Enable/Disable per NE";
232 "LLDP frame Retransmit Interval in seconds";
234 leaf msgTxHoldMultiplier {
240 "TTL value for the TLVs transmitter over wire in seconds";
246 "LLDP port configurations";
249 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
252 "Ethernet interface name where LLDP runs";
259 "Disables the LLDP frames transmit and receive on specific interface";
264 "Enable Transmit and Receive LLDP frames on specific interface";
269 "LLDP enable per port basis";
275 "LLDP Oper data - Neighbour List information";
281 "Ethernet interface name where LLDP runs";
289 notification lldp-nbr-info-change {
291 "LLDP: Neighbor Information Changed
293 remoteSysMgmtAddressSubType
297 remoteChassisIdSubType
299 All of the above attributes are sent in event";
300 leaf notification-type {
301 type org-openroadm-resource-types:resource-notification-type;
304 type org-openroadm-resource-types:resource-type-enum;
306 "resource-type for this notification is interface";
311 "resource interface-name";
317 type yang:date-and-time;
320 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:protocols" {
321 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'";