OcNOS-RON : OpenConfig Command Reference : LLDP OpenConfig Translation
LLDP OpenConfig Translation
Enable management attributes
This command is used to enable LLDP and all the management TLV attributes.
Release
This configuration was introduced in OcNOS version 5.0.
OpenConfig NETCONF Payload
<lldp xmlns="http://openconfig.net/yang/lldp">
<config>
<enabled>true</enabled>
</config>
</lldp>
OcNOS CLI command
lldp run
lldp tlv-select basic-mgmt port-description
lldp tlv-select basic-mgmt system-name
lldp tlv-select basic-mgmt system-capabilities
lldp tlv-select basic-mgmt system-description
lldp tlv-select basic-mgmt management-address
OcNOS NETCONF Payload
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<global>
<global-tlv-control>
<global-basic-management>
<config>
<port-description>true</port-description>
<management-address>true</management-address>
<system-capabilities>true</system-capabilities>
<system-description>true</system-description>
<system-name>true</system-name>
</config>
</global-basic-management>
</global-tlv-control>
<config>
<enable>true</enable>
</config>
</global>
</lldp>
Validation with NETCONF get
<lldp xmlns="http://openconfig.net/yang/lldp">
<config>
<enabled>true</enabled>
</config>
<state>
<enabled>true</enabled>
<counters>
<entries-aged-out>0</entries-aged-out>
<frame-discard>0</frame-discard>
<frame-out>0</frame-out>
<frame-in>0</frame-in>
</counters>
<system-name>OcNOS</system-name>
</state>
</lldp>
Restrictions
N/A
Configure chassis-id
This command is used to set the locally assigned chassis name for the LLDP interface.
Release
This configuration was introduced in OcNOS version 5.0.
OpenConfig NETCONF Payload
<lldp xmlns="http://openconfig.net/yang/lldp">
<config>
<chassis-id>host7028_AS5912-54X</chassis-id>
</config>
</lldp>
OcNOS CLI command
set lldp chassis locally-assigned host7028_AS5912-54X
OcNOS NETCONF Payload
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<global>
<management-if>
<config>
<locally-assigned-chassis-id>host7028_AS5912-54X</locally-assigned-chassis-id>
</config>
</management-if>
</global>
</lldp>
Validation with NETCONF get
<lldp xmlns="http://openconfig.net/yang/lldp">
<config>
<enabled>true</enabled>
<chassis-id>host7028_AS5912-54X</chassis-id>
<chassis-id-type>MAC_ADDRESS</chassis-id-type>
</config>
<state>
<enabled>true</enabled>
<counters>
<entries-aged-out>0</entries-aged-out>
<frame-discard>0</frame-discard>
<frame-out>0</frame-out>
<frame-in>0</frame-in>
</counters>
<system-name>OcNOS</system-name>
<chassis-id>host7028_AS5912-54X</chassis-id>
<chassis-id-type>MAC_ADDRESS</chassis-id-type>
</state>
</lldp>
Restrictions
MAC_ADDRESS chassis type is fixed and assumed by default.
Configure suppress advertisement
This command is used to configure suppress TLV advertisement for one or more attributes.
Release
This configuration was introduced in OcNOS version 5.0.
OpenConfig NETCONF Payload
<lldp xmlns="http://openconfig.net/yang/lldp">
<config>
<suppress-tlv-advertisement>SYSTEM_DESCRIPTION</suppress-tlv-advertisement>
</config>
</lldp>
OcNOS CLI command
no lldp tlv-select basic-mgmt system-description
OcNOS NETCONF Payload
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<global>
<global-tlv-control>
<global-basic-management>
<config>
<system-description>false</system-description>
</config>
</global-basic-management>
</global-tlv-control>
</global>
</lldp>
Validation with NETCONF get
<lldp xmlns="http://openconfig.net/yang/lldp">
<config>
<enabled>true</enabled>
<suppress-tlv-advertisement
xmlns:oc-lldp-types="http://openconfig.net/yang/lldp/types">oc-lldp-types:SYSTEM_DESCRIPTION</suppress-tlv-advertisement>
<chassis-id>host7028_AS5912-54X</chassis-id>
<chassis-id-type>MAC_ADDRESS</chassis-id-type>
</config>
<state>
<enabled>true</enabled>
<counters>
<entries-aged-out>0</entries-aged-out>
<frame-discard>0</frame-discard>
<frame-out>0</frame-out>
<frame-in>0</frame-in>
</counters>
<suppress-tlv-advertisement
xmlns:oc-lldp-types="http://openconfig.net/yang/lldp/types">oc-lldp-types:SYSTEM_DESCRIPTION</suppress-tlv-advertisement>
<system-name>OcNOS</system-name>
<chassis-id>host7028_AS5912-54X</chassis-id>
<chassis-id-type>MAC_ADDRESS</chassis-id-type>
</state>
</lldp>
Restrictions
By default, all basic tlvs are disabled and can be configured using this leaf. Default behaviour is 'suppressed', so this leaf-list will only show up if at least one advertisement is enabled. As OpenConfig and OcNOS have a reverse logic for the TLV (suppress vs enable), when the suppress is present on OpenConfig, the translation forces deletion of the attribute on the Ocnos side. This is equivalent to deleting a config that does not exist. Error may be returned in this case.
Configure system name
This command is used to configure the system-name (hostname).
Release
This configuration was introduced in OcNOS version 5.0.
OpenConfig NETCONF Payload
<lldp xmlns="http://openconfig.net/yang/lldp">
<config>
<system-name>host7028</system-name>
</config>
</lldp>
OcNOS CLI command
hostname host7028
OcNOS NETCONF Payload
<system-info xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-system">
<config>
<hostname>host7028</hostname>
</config>
</system-info>
Validation with NETCONF get
Filter:
<get xmlns="urn:ietf:params:xml:ns:NETCONF:base:1.0">
<filter type="subtree">
<system-info xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-system">
<config>
<hostname />
</config>
</system-info>
</filter>
</get>
Result:
<system xmlns="http://openconfig.net/yang/system">
<config>
<hostname>host7028</hostname>
</config>
</system>
Restrictions
This is the same configuration of system hostname, so both were modified when it is applied. The same restrictions for system hostname apply: per RFC 952 and RFC 1123, a hostname string can contain only the special characters period (“.”) and hyphen (“-”). These special characters cannot be at the start or end of a hostname. The hostname is limited to between 1 and 63 characters.
Enable LLDP on an interface
This command is used to enable LLDP on an interface.
Release
This configuration was introduced in OcNOS version 5.0.
OpenConfig NETCONF Payload
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>xe10</name>
<config>
<enabled>true</enabled>
</config>
</interface>
</interfaces>
</lldp>
OcNOS CLI command
interface xe10
lldp-agent
set lldp enable txrx
OcNOS NETCONF Payload
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<interfaces>
<interface>
<name>xe10</name>
<agent>
<agent-type>default</agent-type>
<config>
<enable-tx-rx>txrx</enable-tx-rx>
<agent-type>default</agent-type>
</config>
</agent>
</interface>
</interfaces>
</lldp>
Validation with NETCONF get
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>xe10</name>
<config>
<name>xe10</name>
<enabled>true</enabled>
</config>
</interface>
</interfaces>
</lldp>
Restrictions
Enabled set as true will configure mode tx-rx in OcNOS. When enabled = false, the OcNOS mode will be set as rx-only.
LLDP get attributes
The following attributes are read-only (runtime) attributes for LLDP.
Counters
This command is used to display LLDP counters.
Filter
<filter>
<lldp xmlns="http://openconfig.net/yang/lldp">
<state>
<counters/>
</state>
</lldp>
</filter>
OpenConfig get result
<lldp xmlns="http://openconfig.net/yang/lldp">
<state>
<enabled>true</enabled>
<counters>
<entries-aged-out>0</entries-aged-out>
<frame-discard>0</frame-discard>
<frame-out>0</frame-out>
<frame-in>1</frame-in>
</counters>
</state>
</lldp>
OcNOS get result
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<global>
<state>
<counters>
<remote-ageouts>0</remote-ageouts>
<remote-drops>0</remote-drops>
<remote-deletes>0</remote-deletes>
<remote-inserts>1</remote-inserts>
</counters>
</state>
</global>
</lldp>
Restrictions
Only the counters remote-ageouts, remote-drops, remote-deletes, remote-inserts are supported.
Interface counters
This command is used to display LLDP interface counters.
Filter
<filter>
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>ce50</name>
<state>
<counters/>
</state>
</interface>
</interfaces>
</lldp>
</filter>
OpenConfig get result
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>xe1</name>
<config>
<name>xe1</name>
</config>
<state>
<counters>
<frame-out>14</frame-out>
</counters>
</state>
</interface>
</interfaces>
</lldp>
OcNOS get result
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<interfaces>
<interface>
<name>xe1</name>
<agent>
<agent-type>default</agent-type>
<transmit>
<state>
<tx-fast-init>2</tx-fast-init>
<tx-credit-max>9</tx-credit-max>
<message-fast-tx>222</message-fast-tx>
<message-tx-hold-multiplier>88</message-tx-hold-multiplier>
<message-tx-interval>999</message-tx-interval>
<reinit-delay>6</reinit-delay>
<tx-ttl>65535</tx-ttl>
<counters>
<frames-out>14</frames-out>
</counters>
</state>
</transmit>
</agent>
</interface>
</interfaces>
</lldp>
Restrictions
Only the counter frame-out is supported.
Neighbors
This command is used to display neighbors.
Filter
<filter>
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>ce50</name>
<neighbors>
<neighbor>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
</filter>
OpenConfig get result
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>xe1</name>
<config>
<name>xe1</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193e</id>
<state><id>b86a.97be.193e</id><system-description>Hardware Model:EC_AS5912-54X</system-description>1<ttl>121</ttl><port-id-type>MAC_ADDRESS</port-id-type><port-description>xe1</port-description><port-id>b86a.97be.193e</port-id><chassis-id-type>NETWORK_ADDRESS</chassis-id-type><chassis-id>10.12.89.136</chassis-id><system-name>7031</system-name><management-address>b86a.97a7.253c</management-address><management-address-type>MAC Address</management-address-type></state>
<capabilities xmlns:oc-lldp-types="http://openconfig.net/yang/lldp/types">
<capability>
<name>oc-lldp-types:MAC_BRIDGE</name>
<state>
<name>oc-lldp-types:MAC_BRIDGE</name>
<enabled>true</enabled>
</state>
</capability>
<capability>
<name>oc-lldp-types:ROUTER</name>
<state>
<name>oc-lldp-types:ROUTER</name>
<enabled>true</enabled>
</state>
</capability>
</capabilities>
<custom-tlvs>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<value>1518</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<value>11654</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<value>0</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<value>0</value>
</state>
</tlv>
</custom-tlvs>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
OcNOS get result
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<interfaces>
<interface>
<name>xe1</name>
<neighbors>
<agent>
<agent-type>default</agent-type>
<neighbor>
<mac-address>b86a.97be.193e</mac-address>
<state>
<mac-address>b86a.97be.193e</mac-address>
<system-capabilties-enabled>Bridge Router</system-capabilties-enabled>
<system-capabilties>Bridge Router</system-capabilties>
<system-description>Hardware Model:EC_AS5912-54X</system-description>
<max-frame-size>1518</max-frame-size>
<link-aggregate-capability>Capable</link-aggregate-capability>
<operational-mau-type>54</operational-mau-type>
<auto-negotiation-capability>16</auto-negotiation-capability>
<auto-negotiation-support>1</auto-negotiation-support>
<management-vlan>0</management-vlan>
<vid-usage-digest>0</vid-usage-digest>
<pp-vlanid>0</pp-vlanid>
<port-vlan-id>0</port-vlan-id>
<ttl>121</ttl>
<port-sub-type>3</port-sub-type>
<port-description>xe1</port-description>
<port-id>b86a.97be.193e</port-id>
<chassis-id-type>5</chassis-id-type>
<chassis-component>10.12.89.136</chassis-component>
<system-name>7031</system-name>
<management-list>
<address>b86a.97a7.253c</address>
<oid>0</oid>
<interface-number>10001</interface-number>
<interface-number-sub-type>ifindex</interface-number-sub-type>
<address-sub-type>MAC Address</address-sub-type>
</management-list>
</state>
</neighbor>
</agent>
</neighbors>
</interface>
</interfaces>
</lldp>
Neighbors name and description
This command is used to display neighbors' name and description.
Filter
<filter>
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<neighbors>
<neighbor>
<name>ce50</name>
<state>
<system-name/>
<description/>
<id/>
<ttl/>
</state>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
</filter>
OpenConfig get result
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>eth0</name>
<config>
<name>eth0</name>
</config>
<neighbors>
<neighbor>
<id>08f1.ea53.dbf2</id>
<state>
<id>08f1.ea53.dbf2</id>
<system-description>HPE OfficeConnect Switch 1920S 24G 2SFP JL381A PD.01.05 Linux 3.6.5-ac96795c U-Boot 2012.10-00118-g3773021 (Oct 11 2016 - 15:39:54)</system-description>
<system-name>LAB1-SW13</system-name>
</state>
</neighbor>
</neighbors>
</interface>
<interface>
<name>xe2</name>
<config>
<name>xe2</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193f</id>
<state>
<id>b86a.97be.193f</id>
<system-description>Hardware Model:EC_AS5912-54X</system-description>
<system-name>7031</system-name>
</state>
</neighbor>
</neighbors>
</interface>
<interface>
<name>xe1</name>
<config>
<name>xe1</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193e</id>
<state>
<id>b86a.97be.193e</id>
<system-description>Hardware Model:EC_AS5912-54X</system-description>
<system-name>7031</system-name>
</state>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
OcNOS get result
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<interfaces>
<interface>
<name>xe1</name>
<neighbors>
<agent>
<agent-type>default</agent-type>
<neighbor>
<mac-address>b86a.97be.193e</mac-address>
<state>
<mac-address>b86a.97be.193e</mac-address>
<system-capabilties-enabled>Bridge Router</system-capabilties-enabled>
<system-capabilties>Bridge Router</system-capabilties>
<system-description>Hardware Model:EC_AS5912-54X</system-description>
<max-frame-size>1518</max-frame-size>
<link-aggregate-capability>Capable</link-aggregate-capability>
<operational-mau-type>54</operational-mau-type>
<auto-negotiation-capability>16</auto-negotiation-capability>
<auto-negotiation-support>1</auto-negotiation-support>
<management-vlan>0</management-vlan>
<vid-usage-digest>0</vid-usage-digest>
<pp-vlanid>0</pp-vlanid>
<port-vlan-id>0</port-vlan-id>
<ttl>121</ttl>
<port-sub-type>3</port-sub-type>
<port-description>xe1</port-description>
<port-id>b86a.97be.193e</port-id>
<chassis-id-type>5</chassis-id-type>
<chassis-component>10.12.89.136</chassis-component>
<system-name>7031</system-name>
<management-list>
<address>b86a.97a7.253c</address>
<oid>0</oid>
<interface-number>10001</interface-number>
<interface-number-sub-type>ifindex</interface-number-sub-type>
<address-sub-type>MAC Address</address-sub-type>
</management-list>
</state>
</neighbor>
</agent>
</neighbors>
</interface>
</interfaces>
</lldp>
Neighbors chassis-id, type and ttl
This command is used to display neighbors' chassis-id, type and ttl.
Filter
<filter>
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<neighbors>
<neighbor>
<name>ce50</name>
<state>
<chassis-id/>
<chassis-id-type/>
<id/>
<ttl/>
</state>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
</filter>
OpenConfig get result
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>eth0</name>
<config>
<name>eth0</name>
</config>
<neighbors>
<neighbor>
<id>08f1.ea53.dbf2</id>
<state>
<id>08f1.ea53.dbf2</id>
<chassis-id>08f1.ea53.dbf0</chassis-id>
<chassis-id-type>MAC_ADDRESS</chassis-id-type>
<ttl>120</ttl>
</state>
</neighbor>
</neighbors>
</interface>
<interface>
<name>xe2</name>
<config>
<name>xe2</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193f</id>
<state>
<id>b86a.97be.193f</id>
<chassis-id>b86a.97a7.253c</chassis-id>
<chassis-id-type>MAC_ADDRESS</chassis-id-type>
<ttl>121</ttl>
</state>
</neighbor>
</neighbors>
</interface>
<interface>
<name>xe1</name>
<config>
<name>xe1</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193e</id>
<state>
<id>b86a.97be.193e</id>
<chassis-id>10.12.89.136</chassis-id>
<chassis-id-type>NETWORK_ADDRESS</chassis-id-type>
<ttl>121</ttl>
</state>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
OcNOS get result
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<interfaces>
<interface>
<name>xe1</name>
<neighbors>
<agent>
<agent-type>default</agent-type>
<neighbor>
<mac-address>b86a.97be.193e</mac-address>
<state>
<mac-address>b86a.97be.193e</mac-address>
<system-capabilties-enabled>Bridge Router</system-capabilties-enabled>
<system-capabilties>Bridge Router</system-capabilties>
<system-description>Hardware Model:EC_AS5912-54X</system-description>
<max-frame-size>1518</max-frame-size>
<link-aggregate-capability>Capable</link-aggregate-capability>
<operational-mau-type>54</operational-mau-type>
<auto-negotiation-capability>16</auto-negotiation-capability>
<auto-negotiation-support>1</auto-negotiation-support>
<management-vlan>0</management-vlan>
<vid-usage-digest>0</vid-usage-digest>
<pp-vlanid>0</pp-vlanid>
<port-vlan-id>0</port-vlan-id>
<ttl>121</ttl>
<port-sub-type>3</port-sub-type>
<port-description>xe1</port-description>
<port-id>b86a.97be.193e</port-id>
<chassis-id-type>5</chassis-id-type>
<chassis-component>10.12.89.136</chassis-component>
<system-name>7031</system-name>
<management-list>
<address>b86a.97a7.253c</address>
<oid>0</oid>
<interface-number>10001</interface-number>
<interface-number-sub-type>ifindex</interface-number-sub-type>
<address-sub-type>MAC Address</address-sub-type>
</management-list>
</state>
</neighbor>
</agent>
</neighbors>
</interface>
</interfaces>
</lldp>
Neighbors port-id, type and description
This is used to display neighbors' port-id, port-id-type and port-description.
Filter
<filter>
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<neighbors>
<neighbor>
<name>ce50</name>
<state>
<port-id/>
<port-id-type/>
<port-description/>
<management-address/>
<management-address-type/>
</state>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
</filter>
OpenConfig get result
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>eth0</name>
<config>
<name>eth0</name>
</config>
<neighbors>
<neighbor>
<id>08f1.ea53.dbf2</id>
<state>
<id>08f1.ea53.dbf2</id>
<port-id>08f1.ea53.dbf2</port-id>
<port-id-type>MAC_ADDRESS</port-id-type>
<port-description>19</port-description>
</state>
</neighbor>
</neighbors>
</interface>
<interface>
<name>xe2</name>
<config>
<name>xe2</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193f</id>
<state>
<id>b86a.97be.193f</id>
<port-id>b86a.97be.193f</port-id>
<port-id-type>MAC_ADDRESS</port-id-type>
<port-description>xe2</port-description>
</state>
</neighbor>
</neighbors>
</interface>
<interface>
<name>xe1</name>
<config>
<name>xe1</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193e</id>
<state>
<id>b86a.97be.193e</id>
<port-id>b86a.97be.193e</port-id>
<port-id-type>MAC_ADDRESS</port-id-type>
<port-description>xe1</port-description>
</state>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
OcNOS get result
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<interfaces>
<interface>
<name>xe1</name>
<neighbors>
<agent>
<agent-type>default</agent-type>
<neighbor>
<mac-address>b86a.97be.193e</mac-address>
<state>
<mac-address>b86a.97be.193e</mac-address>
<system-capabilties-enabled>Bridge Router</system-capabilties-enabled>
<system-capabilties>Bridge Router</system-capabilties>
<system-description>Hardware Model:EC_AS5912-54X</system-description>
<max-frame-size>1518</max-frame-size>
<link-aggregate-capability>Capable</link-aggregate-capability>
<operational-mau-type>54</operational-mau-type>
<auto-negotiation-capability>16</auto-negotiation-capability>
<auto-negotiation-support>1</auto-negotiation-support>
<management-vlan>0</management-vlan>
<vid-usage-digest>0</vid-usage-digest>
<pp-vlanid>0</pp-vlanid>
<port-vlan-id>0</port-vlan-id>
<ttl>121</ttl>
<port-sub-type>3</port-sub-type>
<port-description>xe1</port-description>
<port-id>b86a.97be.193e</port-id>
<chassis-id-type>5</chassis-id-type>
<chassis-component>10.12.89.136</chassis-component>
<system-name>7031</system-name>
<management-list>
<address>b86a.97a7.253c</address>
<oid>0</oid>
<interface-number>10001</interface-number>
<interface-number-sub-type>ifindex</interface-number-sub-type>
<address-sub-type>MAC Address</address-sub-type>
</management-list>
</state>
</neighbor>
</agent>
</neighbors>
</interface>
</interfaces>
</lldp>
Neighbors custom TLVs type/subtype
This command is used to display neighbors' custom TLVs type/subtype.
Filter
<filter>
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<neighbors>
<neighbor>
<custom-tlvs>
<tlv>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<config/>
</state>
</tlv>
</custom-tlvs>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
</filter>
OpenConfig get result
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>eth0</name>
<config>
<name>eth0</name>
</config>
<neighbors>
<neighbor>
<id>08f1.ea53.dbf2</id>
<state><id>08f1.ea53.dbf2</id><system-description>HPE OfficeConnect Switch 1920S 24G 2SFP JL381A PD.01.05 Linux 3.6.5-ac96795c U-Boot 2012.10-00118-g3773021 (Oct 11 2016 - 15:39:54)</system-description>0<ttl>120</ttl><port-id-type>MAC_ADDRESS</port-id-type><port-description>19</port-description><port-id>08f1.ea53.dbf2</port-id><chassis-id-type>MAC_ADDRESS</chassis-id-type><chassis-id>08f1.ea53.dbf0</chassis-id><system-name>LAB1-SW13</system-name><management-address>10.12.89.123</management-address><management-address-type>IP Address</management-address-type></state>
<capabilities xmlns:oc-lldp-types="http://openconfig.net/yang/lldp/types">
<capability>
<name>oc-lldp-types:MAC_BRIDGE</name>
<state>
<name>oc-lldp-types:MAC_BRIDGE</name>
<enabled>true</enabled>
</state>
</capability>
<capability>
<name>oc-lldp-types:ROUTER</name>
<state>
<name>oc-lldp-types:ROUTER</name>
<enabled>false</enabled>
</state>
</capability>
</capabilities>
<custom-tlvs>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<value>0</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<value>000</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<value>0</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<value>0</value>
</state>
</tlv>
</custom-tlvs>
</neighbor>
</neighbors>
</interface>
<interface>
<name>xe2</name>
<config>
<name>xe2</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193f</id>
<state><id>b86a.97be.193f</id><system-description>Hardware Model:EC_AS5912-54X</system-description>1<ttl>121</ttl><port-id-type>MAC_ADDRESS</port-id-type><port-description>xe2</port-description><port-id>b86a.97be.193f</port-id><chassis-id-type>MAC_ADDRESS</chassis-id-type><chassis-id>b86a.97a7.253c</chassis-id><system-name>7031</system-name><management-address>b86a.97a7.253c</management-address><management-address-type>MAC Address</management-address-type></state>
<capabilities xmlns:oc-lldp-types="http://openconfig.net/yang/lldp/types">
<capability>
<name>oc-lldp-types:MAC_BRIDGE</name>
<state>
<name>oc-lldp-types:MAC_BRIDGE</name>
<enabled>true</enabled>
</state>
</capability>
<capability>
<name>oc-lldp-types:ROUTER</name>
<state>
<name>oc-lldp-types:ROUTER</name>
<enabled>true</enabled>
</state>
</capability>
</capabilities>
<custom-tlvs>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<value>1518</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<value>11654</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<value>0</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<value>0</value>
</state>
</tlv>
</custom-tlvs>
</neighbor>
</neighbors>
</interface>
<interface>
<name>xe1</name>
<config>
<name>xe1</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193e</id>
<state><id>b86a.97be.193e</id><system-description>Hardware Model:EC_AS5912-54X</system-description>1<ttl>121</ttl><port-id-type>MAC_ADDRESS</port-id-type><port-description>xe1</port-description><port-id>b86a.97be.193e</port-id><chassis-id-type>NETWORK_ADDRESS</chassis-id-type><chassis-id>10.12.89.136</chassis-id><system-name>7031</system-name><management-address>b86a.97a7.253c</management-address><management-address-type>MAC Address</management-address-type></state>
<capabilities xmlns:oc-lldp-types="http://openconfig.net/yang/lldp/types">
<capability>
<name>oc-lldp-types:MAC_BRIDGE</name>
<state>
<name>oc-lldp-types:MAC_BRIDGE</name>
<enabled>true</enabled>
</state>
</capability>
<capability>
<name>oc-lldp-types:ROUTER</name>
<state>
<name>oc-lldp-types:ROUTER</name>
<enabled>true</enabled>
</state>
</capability>
</capabilities>
<custom-tlvs>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<value>1518</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<value>11654</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<value>0</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<value>0</value>
</state>
</tlv>
</custom-tlvs>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
OcNOS get result
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<interfaces>
<interface>
<name>xe1</name>
<neighbors>
<agent>
<agent-type>default</agent-type>
<neighbor>
<mac-address>b86a.97be.193e</mac-address>
<state>
<mac-address>b86a.97be.193e</mac-address>
<pp-vlanid>0</pp-vlanid>
</state>
</neighbor>
</agent>
</neighbors>
</interface>
</interfaces>
</lldp>
Neighbors custom TLVs
This command is used to display neighbors' custom TLVs.
Filter
<filter>
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>ce50</name>
<neighbors>
<neighbor>
<custom-tlvs>
<tlv>
<type>127</type>
<oui>0-80-C2</oui>
</tlv>
</custom-tlvs>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
</filter>
OpenConfig get result
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>xe1</name>
<config>
<name>xe1</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193e</id>
<state><id>b86a.97be.193e</id><system-description>Hardware Model:EC_AS5912-54X</system-description>1<ttl>121</ttl><port-id-type>MAC_ADDRESS</port-id-type><port-description>xe1</port-description><port-id>b86a.97be.193e</port-id><chassis-id-type>NETWORK_ADDRESS</chassis-id-type><chassis-id>10.12.89.136</chassis-id><system-name>7031</system-name><management-address>b86a.97a7.253c</management-address><management-address-type>MAC Address</management-address-type></state>
<capabilities xmlns:oc-lldp-types="http://openconfig.net/yang/lldp/types">
<capability>
<name>oc-lldp-types:MAC_BRIDGE</name>
<state>
<name>oc-lldp-types:MAC_BRIDGE</name>
<enabled>true</enabled>
</state>
</capability>
<capability>
<name>oc-lldp-types:ROUTER</name>
<state>
<name>oc-lldp-types:ROUTER</name>
<enabled>true</enabled>
</state>
</capability>
</capabilities>
<custom-tlvs>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<value>1518</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<value>11654</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<value>0</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<value>0</value>
</state>
</tlv>
</custom-tlvs>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
OcNOS get result
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<interfaces>
<interface>
<name>xe1</name>
<neighbors>
<agent>
<agent-type>default</agent-type>
<neighbor>
<mac-address>b86a.97be.193e</mac-address>
<state>
<mac-address>b86a.97be.193e</mac-address>
<port-vlan-id>0</port-vlan-id>
</state>
</neighbor>
</agent>
</neighbors>
</interface>
</interfaces>
</lldp>
Filter
<filter>
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>ce50</name>
<neighbors>
<neighbor>
<custom-tlvs>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
</tlv>
</custom-tlvs>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
</filter>
OpenConfig get result
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>xe1</name>
<config>
<name>xe1</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193e</id>
<state><id>b86a.97be.193e</id><system-description>Hardware Model:EC_AS5912-54X</system-description>1<ttl>121</ttl><port-id-type>MAC_ADDRESS</port-id-type><port-description>xe1</port-description><port-id>b86a.97be.193e</port-id><chassis-id-type>NETWORK_ADDRESS</chassis-id-type><chassis-id>10.12.89.136</chassis-id><system-name>7031</system-name><management-address>b86a.97a7.253c</management-address><management-address-type>MAC Address</management-address-type></state>
<capabilities xmlns:oc-lldp-types="http://openconfig.net/yang/lldp/types">
<capability>
<name>oc-lldp-types:MAC_BRIDGE</name>
<state>
<name>oc-lldp-types:MAC_BRIDGE</name>
<enabled>true</enabled>
</state>
</capability>
<capability>
<name>oc-lldp-types:ROUTER</name>
<state>
<name>oc-lldp-types:ROUTER</name>
<enabled>true</enabled>
</state>
</capability>
</capabilities>
<custom-tlvs>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<value>1518</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<value>11654</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<value>0</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<value>0</value>
</state>
</tlv>
</custom-tlvs>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
OcNOS get result
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<interfaces>
<interface>
<name>xe1</name>
<neighbors>
<agent>
<agent-type>default</agent-type>
<neighbor>
<mac-address>b86a.97be.193e</mac-address>
<state>
<mac-address>b86a.97be.193e</mac-address>
<auto-negotiation-support>1</auto-negotiation-support>
</state>
</neighbor>
</agent>
</neighbors>
</interface>
</interfaces>
</lldp>
Neighbors capabilities
This command is used to display neighbors' capabilities.
Filter
<filter>
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>ce50</name>
<neighbors>
<neighbor>
<capabilities>
<capability>
<name/>
<config/>
<state/>
</capability>
</capabilities>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
</filter>
OpenConfig get result
<lldp xmlns="http://openconfig.net/yang/lldp">
<interfaces>
<interface>
<name>xe1</name>
<config>
<name>xe1</name>
</config>
<neighbors>
<neighbor>
<id>b86a.97be.193e</id>
<state><id>b86a.97be.193e</id><system-description>Hardware Model:EC_AS5912-54X</system-description>1<ttl>121</ttl><port-id-type>MAC_ADDRESS</port-id-type><port-description>xe1</port-description><port-id>b86a.97be.193e</port-id><chassis-id-type>NETWORK_ADDRESS</chassis-id-type><chassis-id>10.12.89.136</chassis-id><system-name>7031</system-name><management-address>b86a.97be.193e</management-address><management-address-type>MAC Address</management-address-type></state>
<capabilities xmlns:oc-lldp-types="http://openconfig.net/yang/lldp/types">
<capability>
<name>oc-lldp-types:MAC_BRIDGE</name>
<state>
<name>oc-lldp-types:MAC_BRIDGE</name>
<enabled>true</enabled>
</state>
</capability>
<capability>
<name>oc-lldp-types:ROUTER</name>
<state>
<name>oc-lldp-types:ROUTER</name>
<enabled>true</enabled>
</state>
</capability>
</capabilities>
<custom-tlvs>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>4</oui-subtype>
<value>1522</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-12-0F</oui>
<oui-subtype>1</oui-subtype>
<value>11654</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>4</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>4</oui-subtype>
<value>Rapid-Spanning-Tree-Protocol</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>2</oui-subtype>
<value>0</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>1</oui-subtype>
<value>1</value>
</state>
</tlv>
<tlv>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>3</oui-subtype>
<state>
<type>127</type>
<oui>00-80-C2</oui>
<oui-subtype>3</oui-subtype>
<value>1default</value>
</state>
</tlv>
</custom-tlvs>
</neighbor>
</neighbors>
</interface>
</interfaces>
</lldp>
OcNOS get result
<lldp xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-lldpv2">
<interfaces>
<interface>
<name>xe1</name>
<neighbors>
<agent>
<agent-type>default</agent-type>
<neighbor>
<mac-address>b86a.97be.193e</mac-address>
<state>
<mac-address>b86a.97be.193e</mac-address>
<port-vlan-id>0</port-vlan-id>
</state>
</neighbor>
</agent>
</neighbors>
</interface>
</interfaces>
</lldp>