fix(ping): stop reporting every target alive
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 16s
driver / types (pull_request) Successful in 1m13s
driver / test (3.12) (pull_request) Successful in 4m9s
driver / test (3.13) (pull_request) Successful in 4m1s
driver / lowest (pull_request) Successful in 3m33s
driver / build (pull_request) Successful in 30s
driver / security (pull_request) Successful in 1m6s
CI / driver (pull_request) Successful in 5m49s
driver / publish (pull_request) Skipped
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 16s
driver / types (pull_request) Successful in 1m13s
driver / test (3.12) (pull_request) Successful in 4m9s
driver / test (3.13) (pull_request) Successful in 4m1s
driver / lowest (pull_request) Successful in 3m33s
driver / build (pull_request) Successful in 30s
driver / security (pull_request) Successful in 1m6s
CI / driver (pull_request) Successful in 5m49s
driver / publish (pull_request) Skipped
ping() returned three replies of 0 ms whenever the DAL accepted a PINGTEST request, without reading any result, so a LAN scan through this gateway marked every address alive. The DAL answer is only an acknowledgement with no reply count, so ping() now returns NAPALM's error reply without contacting the gateway and the driver opts out of ping sweeps with SUPPORTS_PING = False. Closes #2
This commit is contained in:
1 parent
f7002114ae
commit
fcee6d7ddd
4 files changed
+46
-23
No files matched your search
@@ -22,6 +22,10 @@ All notable changes to this driver. The format follows
|
||||
- Every HTTP request to the gateway carries the driver's `timeout`. It was set on
|
||||
the session, where requests ignores it, so an unresponsive gateway could hang a
|
||||
call indefinitely (#3).
|
||||
- `ping()` no longer reports every target as alive. The DAL only acknowledges a
|
||||
`PINGTEST` request and never says whether the target answered, so `ping()` now
|
||||
returns an error and the driver opts out of ping sweeps (`SUPPORTS_PING = False`):
|
||||
a LAN scan through this gateway marked every address alive (#2).
|
||||
|
||||
## [0.3.0] - 2026-10-23
|
||||
|
||||
|
||||
Reference in new issue
Block a user