fix(plus): leave ping to NAPALM so sweeps skip Plus switches
The Plus driver overrode ping only to raise NotImplementedError. An override is what napalm-device-types' driver_supports_ping looks for, so the driver was offered as a ping-sweep source and every target came back as an error. Without the override it inherits NAPALM's stub, which raises the same way and reads as unsupported. Closes #5
This commit is contained in:
1 parent
6f9914f29e
commit
3e333d6bfd
3 files changed
+15
-18
No files matched your search
@@ -548,23 +548,6 @@ class NetgearPlusDriver(FirmwareOfferMixin, SwitchDriver):
|
||||
def has_pending_commit(self) -> bool:
|
||||
return False
|
||||
|
||||
def ping(
|
||||
self,
|
||||
destination: str,
|
||||
source: str = "",
|
||||
ttl: int = 255,
|
||||
timeout: int = 2,
|
||||
size: int = 100,
|
||||
count: int = 5,
|
||||
vrf: str = "",
|
||||
source_interface: str = "",
|
||||
) -> dict[str, Any]:
|
||||
"""Execute ping.
|
||||
|
||||
Not supported on Netgear Plus switches via HTTP.
|
||||
"""
|
||||
raise NotImplementedError("ping() is not supported for Netgear Plus switches.")
|
||||
|
||||
def traceroute(
|
||||
self,
|
||||
destination: str,
|
||||
|
||||
Reference in new issue
Block a user