fix typing in ipneigh
This commit is contained in:
parent
5cecfb4bbe
commit
b9b0e422fd
@ -66,7 +66,7 @@ class NeighborController:
|
|||||||
return None
|
return None
|
||||||
raise
|
raise
|
||||||
|
|
||||||
async def dump_neighbors(self, interface: str) -> typing.Generator[typing.Tuple[cptypes.MacAddress, cptypes.IPAddress]]:
|
async def dump_neighbors(self, interface: str) -> typing.AsyncGenerator[typing.Tuple[cptypes.MacAddress, cptypes.IPAddress], None]:
|
||||||
ifindex = socket.if_nametoindex(interface)
|
ifindex = socket.if_nametoindex(interface)
|
||||||
unicast_num = pr2modules.netlink.rtnl.rt_type['unicast']
|
unicast_num = pr2modules.netlink.rtnl.rt_type['unicast']
|
||||||
# ip.neigh doesn't support AF_UNSPEC (as it is 0 and evaluates to `False` and gets forced to AF_INET)
|
# ip.neigh doesn't support AF_UNSPEC (as it is 0 and evaluates to `False` and gets forced to AF_INET)
|
||||||
|
Loading…
Reference in New Issue
Block a user