# Show LLDP interfaces and neighbors

# URL

frinx-openconfig-lldp:lldp

# OPENCONFIG YANG

YANG models

{
    "lldp": {
        "interfaces": {
            "interface": [
                {
                    "name": "<intf-id>",
                    "state": {
                        "name": "<intf-id>",
                        "enabled": true
                    },
                    "config": {
                        "name": "<intf-id>",
                        "enabled": true
                    },
                    "neighbors": {
                        "neighbor": [
                            {
                                "id": "<nei-id>",
                                "state": {
                                    "port-id": "<port-id>"
                                }
                            }
                        ]
                    }
                }
            ]
        }
    }
}

# OS Commands

# Cisco IOS Classic (15.2(4)S5) / XE (15.3(3)S2)

# CLI


R121#sh lldp interface
<intf-id>
    Tx: enabled
    Rx: enabled
    Tx state: IDLE
    Rx state: WAIT FOR FRAME

R121#sh lldp neighbor <intf-id> detail | include System Name
System Name: <nei-id>
Port id: <port-id>

# Unit

Unit version range: 3.1.1.rc1-frinx

Link to github : ios-unit

# Cisco XR 6.1.2

# Netconf


RP/0/0/CPU0:PE1#show lldp neighbor
Tue Oct 31 12:50:27.962 UTC
Capability codes:
        (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
        (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other

Device ID       Local Intf          Hold-time  Capability     Port ID
<nei-id> Gi0/0/0/3           120        R               <port-id>

Total entries displayed: 1

# Device YANG

Link to github : xml-sample

# Unit

Unit version range: 3.1.1.rc1-frinx

Link to github : xr-unit