Open illes opened 2 years ago
Fix KeyError: 'pvid' in lldp.py #223 vid = value.replace('vlan-', '').replace('VLAN', '')
It still gives an error
Traceback (most recent call last):
File "/usr/lib64/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/netbox_agent/netbox_agent/cli.py", line 54, in
You are right that KeyError: 'pvid'
can still happen, though not with the minimal example I provided. To catch that case, I added an example and tests.
@illes @rosberen sorry for the delay, is this PR ready for you ?