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;
10 revision-date 2017-02-06;
12 import iana-afn-safi {
15 import org-openroadm-resource-types {
16 prefix org-openroadm-resource-types;
17 revision-date 2016-10-14;
19 import ietf-yang-types {
23 organization "Open ROADM MSA";
27 "YANG definitions for lldp protocol.
29 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
30 AT&T Intellectual Property. All other rights reserved.
32 Redistribution and use in source and binary forms, with or without modification,
33 are permitted provided that the following conditions are met:
35 * Redistributions of source code must retain the above copyright notice, this
36 list of conditions and the following disclaimer.
37 * Redistributions in binary form must reproduce the above copyright notice,
38 this list of conditions and the following disclaimer in the documentation and/or
39 other materials provided with the distribution.
40 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
41 contributors may be used to endorse or promote products derived from this software
42 without specific prior written permission.
44 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
45 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
46 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
47 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
48 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
49 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
50 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
51 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
52 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
53 POSSIBILITY OF SUCH DAMAGE.";
59 grouping nbr-info-grp {
61 "Display LLDP Neighbour ";
66 "remote neighbour system name";
68 leaf remoteMgmtAddressSubType {
69 type ianaaf:address-family;
71 "remote neighbour Management Address Subtype Enumeration";
73 leaf remoteMgmtAddress {
76 "remote neighbour management address";
78 leaf remotePortIdSubType {
88 "Interface Alias (IfAlias - IETF RFC 2863) ";
90 enum "portcomponent" {
93 "Port component (EntPhysicalAlias IETF RFC 4133)";
98 "MAC address (IEEE Std 802) ";
100 enum "networkaddress" {
108 "Interface Name (ifName - IETF RFC 2863)";
110 enum "agentcircuitid" {
113 "Agent Circuit Id (IETF RFC 3046)";
122 "remote neighbour Port ID Subtype Enumeration";
127 "remote neighbour port Id";
129 leaf remoteChassisIdSubType {
136 enum "chassiscomponent" {
139 "Chassis component (EntPhysicalAlias IETF RFC 4133)";
144 "Interface Alias (IfAlias - IETF RFC 2863) ";
146 enum "portcomponent" {
149 "Port component (EntPhysicalAlias IETF RFC 4133)";
154 "MAC address (IEEE Std 802) ";
156 enum "networkaddress" {
164 "Interface Name (ifName - IETF RFC 2863)";
173 "Chassis ID Subtype Enumeration";
175 leaf remoteChassisId {
178 "remote neighbour Chassis Id";
182 grouping lldp-container {
185 "LLDP configurable and retrievable";
186 container global-config {
188 "LLDP global configurations";
194 "Disable the LLDP feature per NE";
199 "Enable the LLDP feature per NE";
203 "LLDP feature Enable/Disable per NE";
211 "LLDP frame Retransmit Interval in seconds";
214 leaf msgTxHoldMultiplier {
219 "TTL value for the TLVs transmitter over wire in seconds";
225 "LLDP port configurations";
229 path "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface/org-openroadm-device:name";
232 "Ethernet interface name where LLDP runs";
239 "Disables the LLDP frames transmit and receive on specific interface";
244 "Enable Transmit and Receive LLDP frames on specific interface";
248 "LLDP enable per port basis";
254 "LLDP Oper data - Neighbour List information";
261 "Ethernet interface name where LLDP runs";
269 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:protocols" {
270 when "/org-openroadm-device:org-openroadm-device/org-openroadm-device:info/org-openroadm-device:node-type='rdm'";
274 notification lldp-nbr-info-change {
275 description "LLDP: Neighbor Information Changed
277 remoteSysMgmtAddressSubType
281 remoteChassisIdSubType
283 All of the above attributes are sent in event";
284 leaf notification-type {
285 type org-openroadm-resource-types:resource-notification-type;
288 type org-openroadm-resource-types:resource-type-enum;
290 "resource-type for this notification is interface";
295 "resource interface-name";
301 type yang:date-and-time;