1 module org-openroadm-lldp {
2 namespace "http://org/openroadm/lldp";
3 prefix org-openroadm-lldp;
5 import ietf-inet-types {
8 import org-openroadm-device {
9 prefix org-openroadm-device;
11 import iana-afn-safi {
14 import org-openroadm-resource-types {
15 prefix org-openroadm-resource-types;
17 import ietf-yang-types {
21 organization "Open ROADM MSA";
25 "YANG definitions for lldp protocol.
27 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
28 AT&T Intellectual Property. All other rights reserved.
30 Redistribution and use in source and binary forms, with or without modification,
31 are permitted provided that the following conditions are met:
33 * Redistributions of source code must retain the above copyright notice, this
34 list of conditions and the following disclaimer.
35 * Redistributions in binary form must reproduce the above copyright notice,
36 this list of conditions and the following disclaimer in the documentation and/or
37 other materials provided with the distribution.
38 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
39 contributors may be used to endorse or promote products derived from this software
40 without specific prior written permission.
42 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
43 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
44 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
45 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
46 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
47 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
48 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
49 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
51 POSSIBILITY OF SUCH DAMAGE.";
57 grouping nbr-info-grp {
59 "Display LLDP Neighbour ";
64 "remote neighbour system name";
66 leaf remoteMgmtAddressSubType {
67 type ianaaf:address-family;
69 "remote neighbour Management Address Subtype Enumeration";
71 leaf remoteMgmtAddress {
74 "remote neighbour management address";
76 leaf remotePortIdSubType {
86 "Interface Alias (IfAlias - IETF RFC 2863) ";
88 enum "portcomponent" {
91 "Port component (EntPhysicalAlias IETF RFC 4133)";
96 "MAC address (IEEE Std 802) ";
98 enum "networkaddress" {
106 "Interface Name (ifName - IETF RFC 2863)";
108 enum "agentcircuitid" {
111 "Agent Circuit Id (IETF RFC 3046)";
120 "remote neighbour Port ID Subtype Enumeration";
125 "remote neighbour port Id";
127 leaf remoteChassisIdSubType {
134 enum "chassiscomponent" {
137 "Chassis component (EntPhysicalAlias IETF RFC 4133)";
142 "Interface Alias (IfAlias - IETF RFC 2863) ";
144 enum "portcomponent" {
147 "Port component (EntPhysicalAlias IETF RFC 4133)";
152 "MAC address (IEEE Std 802) ";
154 enum "networkaddress" {
162 "Interface Name (ifName - IETF RFC 2863)";
171 "Chassis ID Subtype Enumeration";
173 leaf remoteChassisId {
176 "remote neighbour Chassis Id";
180 grouping lldp-container {
183 "LLDP configurable and retrievable";
184 container global-config {
186 "LLDP global configurations";
192 "Disable the LLDP feature per NE";
197 "Enable the LLDP feature per NE";
201 "LLDP feature Enable/Disable per NE";
209 "LLDP frame Retransmit Interval in seconds";
212 leaf msgTxHoldMultiplier {
217 "TTL value for the TLVs transmitter over wire in seconds";
223 "LLDP port configurations";
227 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
230 "Ethernet interface name where LLDP runs";
237 "Disables the LLDP frames transmit and receive on specific interface";
242 "Enable Transmit and Receive LLDP frames on specific interface";
246 "LLDP enable per port basis";
252 "LLDP Oper data - Neighbour List information";
259 "Ethernet interface name where LLDP runs";
267 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:protocols" {
268 when "/org-openroadm-device:org-openroadm-device/org-openroadm-device:info/org-openroadm-device:node-type='rdm'";
272 notification lldp-nbr-info-change {
273 description "LLDP: Neighbor Information Changed
275 remoteSysMgmtAddressSubType
279 remoteChassisIdSubType
281 All of the above attributes are sent in event";
282 leaf notification-type {
283 type org-openroadm-resource-types:resource-notification-type;
286 type org-openroadm-resource-types:resource-type-enum;
288 "resource-type for this notification is interface";
293 "resource interface-name";
299 type yang:date-and-time;