feat: SNMP support — get_snmp_config(), fix_snmp for Smart switches

NetgearPlus: get_snmp_config() returns None (SNMP not accessible via HTTP API).
NetgearSmart: get_snmp_config() reads current community, fix_snmp configures
'snmp-server community public ro' via CLI.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Manivong
2026-06-01 13:10:03 +02:00
co-authored by Claude Sonnet 4.6
parent a8ce5a8033
commit 64eb2551a4
2 changed files with 83 additions and 0 deletions
+7
View File
@@ -730,6 +730,13 @@ class NetgearPlusDriver(SwitchDriver):
"set_interface() is not supported for Netgear Plus switches."
)
# ── SNMP / Health ──────────────────────────────────────────────────────────
def get_snmp_config(self):
"""SNMP is not accessible via the HTTP API used by this driver.
Returns None to indicate SNMP health monitoring is not supported."""
return None
def get_device_warnings(self) -> list:
"""Check for available firmware updates and return a warning if the
device is not running the latest known firmware.