You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/johan/.local/share/virtualenvs/sohonet-netbox-importer-Gj3g_iu9/lib/python3.9/site-packages/napalm_procurve/procurve.py", line 308, in get_lldp_neighbors
(
ValueError: too many values to unpack (expected 11)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/johan/.local/share/virtualenvs/sohonet-netbox-importer-Gj3g_iu9/lib/python3.9/site-packages/nornir/core/task.py", line 98, in start
r = self.task(self, **self.params)
File "/Users/johan/git/vdl/sohonet-netbox-importer/bin/../nornirrunner/tasks/inventory.py", line 31, in get_device_info
return _get_device_data(task, getters)
File "/Users/johan/git/vdl/sohonet-netbox-importer/bin/../nornirrunner/tasks/inventory.py", line 50, in _get_device_data
return napalm_get(task, getters=getters)
File "/Users/johan/.local/share/virtualenvs/sohonet-netbox-importer-Gj3g_iu9/lib/python3.9/site-packages/nornir_napalm/plugins/tasks/napalm_get.py", line 44, in napalm_get
result[g] = method(**options)
File "/Users/johan/.local/share/virtualenvs/sohonet-netbox-importer-Gj3g_iu9/lib/python3.9/site-packages/napalm_procurve/procurve.py", line 325, in get_lldp_neighbors
remote_port, device_id = self._get_lldp_neighbors_detail(local_port)
File "/Users/johan/.local/share/virtualenvs/sohonet-netbox-importer-Gj3g_iu9/lib/python3.9/site-packages/napalm_procurve/procurve.py", line 376, in _get_lldp_neighbors_detail
return (tmp_lldp_details["PortId"], tmp_lldp_details["SysName"])
KeyError: 'PortId'
Because get_lldp_neighbors is using line-by-line parsing of the output, each line of the hex values is being processed as if it were a separate entry in the table
The text was updated successfully, but these errors were encountered:
Some devices can return a multiline sysname, i.e.:
This results in the following errors:
Because get_lldp_neighbors is using line-by-line parsing of the output, each line of the hex values is being processed as if it were a separate entry in the table
The text was updated successfully, but these errors were encountered: