Version: VyOS 1.4-rolling-202307070317
I enabled LLDP and the switch sees the VyOS instance via LLDP fine. However, on the VyOS instance, when I attempt to run show lldp neighbors
I get a python traceback:
tech@HYMRVAX0FW0:~$ show lldp neighbors
Traceback (most recent call last):
File "/usr/libexec/vyos/op_mode/lldp.py", line 144, in <module>
res = vyos.opmode.run(sys.modules[__name__])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/vyos/opmode.py", line 263, in run
res = func(**args)
^^^^^^^^^^^^
File "/usr/libexec/vyos/op_mode/lldp.py", line 44, in _wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/libexec/vyos/op_mode/lldp.py", line 140, in show_neighbors
return _get_formatted_output(lldp_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/libexec/vyos/op_mode/lldp.py", line 117, in _get_formatted_output
tmp.append(platform[:37])
~~~~~~~~^^^^^
TypeError: 'NoneType' object is not subscriptable
lldpctl
shows the expected output fine:
tech@HYMRVAX0FW0:~$ lldpctl
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: eth2, via: LLDP, RID: 1, Time: 0 day, 13:15:58
Chassis:
ChassisID: mac 08:9e:01:82:6d:fe
SysName: HYMRVAX0SW0
MgmtIP: 172.27.2.11
MgmtIface: 33
Capability: Bridge, on
Capability: Router, on
Port:
PortID: mac 08:9e:01:82:6e:13
PortDescr: 10GigabitEthernet22
TTL: 120
MFS: 9216
Port is aggregated. PortAggregID: 21
PMD autoneg: supported: yes, enabled: no
MAU oper type: 10GigBaseSR - R fiber over 850 nm optics
LLDP-MED:
Device Type: Network Connectivity Device
Capability: Capabilities, yes
Capability: Policy, yes
Capability: Location, yes
Capability: MDI/PSE, yes
-------------------------------------------------------------------------------
Interface: eth3, via: LLDP, RID: 1, Time: 0 day, 13:15:58
Chassis:
ChassisID: mac 08:9e:01:82:6d:fe
SysName: HYMRVAX0SW0
MgmtIP: 172.27.2.11
MgmtIface: 33
Capability: Bridge, on
Capability: Router, on
Port:
PortID: mac 08:9e:01:82:6e:12
PortDescr: 10GigabitEthernet21
TTL: 120
MFS: 9216
Port is aggregated. PortAggregID: 21
PMD autoneg: supported: yes, enabled: no
MAU oper type: 10GigBaseSR - R fiber over 850 nm optics
LLDP-MED:
Device Type: Network Connectivity Device
Capability: Capabilities, yes
Capability: Policy, yes
Capability: Location, yes
Capability: MDI/PSE, yes
-------------------------------------------------------------------------------
tech@HYMRVAX0FW0:~$
I’m not sure if this is a me problem or if it’s a bug? I have not yet tried upgrading to the latest rolling release.