napalm-huawei-vrp icon indicating copy to clipboard operation
napalm-huawei-vrp copied to clipboard

Error running device.get_mac_address_table()

Open AskskwBv8T2nrm4Qnj opened this issue 1 year ago • 0 comments

Hi,

Thank you for the update last week.

When I use the following function, I receive a stack trace:

device.get_mac_address_table()

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/netbox-3.7.4/venv/lib/python3.11/site-packages/napalm_huawei_vrp/huawei_vrp.py", line 978, in get_mac_address_table
    "mac": mac(mac_info[0]),
           ^^^^^^^^^^^^^^^^
  File "/opt/netbox-3.7.4/venv/lib/python3.11/site-packages/napalm/base/helpers.py", line 521, in mac
    return str(EUI(raw, dialect=_MACFormat))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/netbox-3.7.4/venv/lib/python3.11/site-packages/netaddr/eui/__init__.py", line 374, in __init__
    self.value = addr
    ^^^^^^^^^^
  File "/opt/netbox-3.7.4/venv/lib/python3.11/site-packages/netaddr/eui/__init__.py", line 422, in _set_value
    raise AddrFormatError('failed to detect EUI version: %r' % (value,))
netaddr.core.AddrFormatError: failed to detect EUI version: 'seconds'

Device: Cloudengine 6855 OS: VRP (R) software, Version 8.180

pip list: ... netmiko 4.3.0 napalm 4.1.0 napalm-huawei-vrp 1.2.0 netbox_napalm_plugin 0.1.7

Using a switch that has been factory reset and only the basics of SSH configured. I can run all other 'Get info' commands succesfully.

Seems very related to: https://github.com/napalm-automation-community/napalm-ftos/issues/2

Please do let me know if I can help troubleshoot further.

AskskwBv8T2nrm4Qnj avatar Apr 12 '24 08:04 AskskwBv8T2nrm4Qnj