Skip to content

Instantly share code, notes, and snippets.

@dgjustice
Created December 12, 2022 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgjustice/53363109df3059c2dec9ed18b4ff94dd to your computer and use it in GitHub Desktop.
Save dgjustice/53363109df3059c2dec9ed18b4ff94dd to your computer and use it in GitHub Desktop.
oc-lldp
<?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns:nxos="http://www.cisco.com/nxos:1.0" xmlns:if="http://www.cisco.com/nxos:1.0:if_manager" xmlns:nfcli="http://www.cisco.com/nxos:1.0:nfcli" xmlns:vlan_mgr_cli="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:edb152bf-d81c-42e4-b368-2d67d278ab88">
<data>
<lldp xmlns="http://openconfig.net/yang/lldp">
<config>
<enabled>true</enabled>
<hello-timer>30</hello-timer>
</config>
<interfaces>
<interface>
<name>eth1/10</name>
<config>
<enabled>true</enabled>
<name>eth1/10</name>
</config>
<neighbors>
<neighbor>
<id>1</id>
<capabilities>
<capability>
<name>ROUTER</name>
<state>
<enabled>true</enabled>
<name>ROUTER</name>
</state>
</capability>
</capabilities>
<state>
<id>1</id>
<management-address>10.42.42.42</management-address>
<port-description>eth0</port-description>
<port-id>cafe.dead.beef</port-id>
<port-id-type>MAC_ADDRESS</port-id-type>
<chassis-id>dead.beef.cafe</chassis-id>
<chassis-id-type>MAC_ADDRESS</chassis-id-type>
<system-description>Debian GNU/Linux 11</system-description>
<system-name>bare-metal-boxer</system-name>
</state>
</neighbor>
</neighbors>
<state>
<enabled>true</enabled>
<name>eth1/10</name>
<counters>
<frame-discard>0</frame-discard>
<frame-error-in>0</frame-error-in>
<frame-in>114976</frame-in>
<frame-out>114963</frame-out>
<tlv-unknown>0</tlv-unknown>
</counters>
</state>
</interface>
</interfaces>
<state>
<enabled>true</enabled>
<hello-timer>30</hello-timer>
<counters>
<entries-aged-out>0</entries-aged-out>
<frame-discard>0</frame-discard>
<frame-error-in>0</frame-error-in>
<frame-in>2103213</frame-in>
<frame-out>2082094</frame-out>
<tlv-unknown>0</tlv-unknown>
</counters>
</state>
</lldp>
</data>
</rpc-reply>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment