Skip to content
49 changes: 48 additions & 1 deletion release/models/lldp/openconfig-lldp.yang
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module openconfig-lldp {
import openconfig-yang-types { prefix oc-yang; }
import openconfig-inet-types { prefix oc-inet; }
import openconfig-extensions { prefix oc-ext; }
import openconfig-vlan-types { prefix oc-vlan-types; }


// meta
Expand All @@ -25,7 +26,15 @@ module openconfig-lldp {
"This module defines configuration and operational state data
for the LLDP protocol.";

oc-ext:openconfig-version "1.0.0";
oc-ext:openconfig-version "1.1.0";

revision "2026-04-14" {
description
"Add LLDP neighbor state leaves for LLDP-MED inventory serial
number, IEEE 802.1 port VLAN ID, and IEEE 802.3 link aggregation
and max frame size.";
reference "1.1.0";
}

revision "2026-01-14" {
description
Expand Down Expand Up @@ -362,6 +371,44 @@ module openconfig-lldp {
typing to pair up with the 802.1AB Management Address TLV
specification.";
}

leaf med-inventory-serial-number {
type string;
description
"The serial number of the remote device as advertised in
the LLDP-MED Inventory - Serial Number TLV.";
}

leaf port-vlan-id {
type oc-vlan-types:vlan-id;
description
"The port VLAN identifier advertised by the
neighbor in the IEEE 802.1 Port VLAN ID TLV.";
}
Comment thread
yogeshg-arista marked this conversation as resolved.
Outdated

leaf link-aggregation-status {
type uint8;
description
"The link aggregation status of the neighbor port as
advertised in the IEEE 802.3 Link Aggregation TLV.
Bit 0 indicates aggregation capability, bit 1 indicates
aggregation status.";
}
Comment thread
yogeshg-arista marked this conversation as resolved.
Outdated

leaf link-aggregation-port-id {
type uint32;
description
"The aggregated port identifier of the neighbor port as
advertised in the IEEE 802.3 Link Aggregation TLV.";
}

leaf max-frame-size {
type uint16;
description
"The maximum frame size in octets supported by the
neighbor port as advertised in the IEEE 802.3 Maximum
Frame Size TLV.";
}
}

grouping lldp-capabilities-config {
Expand Down