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