Page MenuHomeVyOS Platform

op-mode: lldp: "show lldp neighbors" IndexError: list index out of range
Closed, ResolvedPublicBUG

Description

vyos@vyos:~$ show lldp neighbors 
Traceback (most recent call last):
  File "/usr/libexec/vyos/op_mode/lldp_op.py", line 151, in <module>
    tmp['neighbors'].append( extract_neighbor(neighbor) )
  File "/usr/libexec/vyos/op_mode/lldp_op.py", line 108, in extract_neighbor
    device['platform'] = chassis[0].getElementsByTagName('descr')[0].firstChild.data[:20].replace(',',' ')
IndexError: list index out of range

Connected is an Arista vEOS switch and another VyOS router (back-2-back)

Details

Difficulty level
Unknown (require assessment)
Version
1.3-rolling-202008140118
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)