Skip to content

v0.5.12 TypeError: Unsupported link layer address length 0 #717

Closed
@mkorkalo

Description

@mkorkalo

Upgrading from 0.5.11 to 0.5.12 gives this warning on my Ubuntu 18.04 test VM:

>>> i = pyroute2.IPDB()
2020-06-18 09:47:46,543 - pyroute2.ipdb.main - WARNING - Deprecation warning https://docs.pyroute2.org/ipdb_toc.html
>>> i.ipaddr
2020-06-18 09:47:49,900 - pyroute2.netlink - WARNING - decoding NDA_LLADDR
2020-06-18 09:47:49,901 - pyroute2.netlink - WARNING - Traceback (most recent call last):
  File "/opt/fleet/sensor-orchestrator/virtualenv/lib/python3.8/site-packages/pyroute2/netlink/__init__.py", line 1520, in try_to_decode
    cell.decode()
  File "/opt/fleet/sensor-orchestrator/virtualenv/lib/python3.8/site-packages/pyroute2/netlink/__init__.py", line 1901, in decode
    raise TypeError('Unsupported link layer address length {}'
TypeError: Unsupported link layer address length 0

{1: (('::1', 128), ('169.254.255.255', 32), ('127.0.0.1', 8)), 2: (('fe80::a00:27ff:fed2:d382', 64), ('192.168.56.101', 24)), 3: (('fe80::a00:27ff:fe97:4aa9', 64), ('10.0.3.15', 24)), 4: (('169.254.255.255', 32), ('fe80::4871:fe4:ff79:1b05', 64)), 5: (('fe80::b820:efff:feed:4196', 64),), 11: (('fe80::34d6:daff:fe5f:b139', 64),)}

my lladdr object holds the following data:
{'value': b'', 'attrs': [], 'header': {'length': 4, 'type': 2}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions