chore: adopt the NAPALM driver standard #5

Merged
christianmanivong merged 4 commits from chore/driver-standard into main 2026-10-23 11:16:24 +00:00
Showing only changes of commit 989e826b34 - Show all commits
+2 -1
View File
@@ -464,7 +464,8 @@ class WindowsDriver(OSDriver):
if protocol and proto != protocol.lower(): if protocol and proto != protocol.lower():
continue continue
next_hop = r.get("next_hop") or "" 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 = "" next_hop = ""
routes.setdefault(network, []).append( routes.setdefault(network, []).append(
{ {