ipneigh: handle missing mac from neighbor entry
This commit is contained in:
parent
2a3bd36d3b
commit
8eedb6b367
@ -54,6 +54,8 @@ class NeighborController:
|
|||||||
if neigh is None:
|
if neigh is None:
|
||||||
return None
|
return None
|
||||||
mac = neigh.get_attr(neigh.name2nla('lladdr'))
|
mac = neigh.get_attr(neigh.name2nla('lladdr'))
|
||||||
|
if mac is None:
|
||||||
|
return None
|
||||||
return cptypes.MacAddress.parse(mac)
|
return cptypes.MacAddress.parse(mac)
|
||||||
|
|
||||||
async def get_route(
|
async def get_route(
|
||||||
|
Loading…
Reference in New Issue
Block a user