chore: adopt the NAPALM driver standard #5
@@ -464,7 +464,8 @@ class WindowsDriver(OSDriver):
|
||||
if protocol and proto != protocol.lower():
|
||||
continue
|
||||
next_hop = r.get("next_hop") or ""
|
||||
if next_hop in ("0.0.0.0", "::"):
|
||||
# The unspecified next hop of an on-link route, read from the host; nothing binds.
|
||||
if next_hop in ("0.0.0.0", "::"): # nosec B104
|
||||
next_hop = ""
|
||||
routes.setdefault(network, []).append(
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user