fix(fingerprint): the GS1920 and GS2210 switch patterns are dropped; a Zyxel switch page no longer scores as this gateway (#4).
fix(http): every get/post/put passes timeout=self.timeout; the ignored session.timeout attribute is gone (#3).
fix(ping): the device's answer to PINGTEST is only an acknowledgement, with no reply count or RTT. The driver now sets SUPPORTS_PING = False and ping() returns an error without contacting the gateway, so sweeps no longer report every target alive (#2). ping can be rebuilt once the PINGTEST result object is recorded.
Three bug fixes, one commit each.
- `fix(fingerprint)`: the GS1920 and GS2210 switch patterns are dropped; a Zyxel switch page no longer scores as this gateway (#4).
- `fix(http)`: every get/post/put passes `timeout=self.timeout`; the ignored `session.timeout` attribute is gone (#3).
- `fix(ping)`: the device's answer to `PINGTEST` is only an acknowledgement, with no reply count or RTT. The driver now sets `SUPPORTS_PING = False` and `ping()` returns an error without contacting the gateway, so sweeps no longer report every target alive (#2). `ping` can be rebuilt once the PINGTEST result object is recorded.
Tested: fixtures only. pytest 40 passed, ruff, mypy, `napalm-standard check`/`ratchet` green.
Closes #4
Closes #3
Closes #2
GS1920 and GS2210 are Zyxel switches. Counting them as evidence for a
VMG gateway driver made discovery score a Zyxel switch higher for this
driver than a real VMG gateway.
Closes#4
requests ignores a timeout attribute on a Session, so open() setting
one left every call without a timeout and an unresponsive gateway
could hang a worker indefinitely. Each get/post/put now carries the
driver's timeout.
Closes#3
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Three bug fixes, one commit each.
fix(fingerprint): the GS1920 and GS2210 switch patterns are dropped; a Zyxel switch page no longer scores as this gateway (#4).fix(http): every get/post/put passestimeout=self.timeout; the ignoredsession.timeoutattribute is gone (#3).fix(ping): the device's answer toPINGTESTis only an acknowledgement, with no reply count or RTT. The driver now setsSUPPORTS_PING = Falseandping()returns an error without contacting the gateway, so sweeps no longer report every target alive (#2).pingcan be rebuilt once the PINGTEST result object is recorded.Tested: fixtures only. pytest 40 passed, ruff, mypy,
napalm-standard check/ratchetgreen.Closes #4
Closes #3
Closes #2