feat!: configure_snmp_agent with the caller's values replaces fix_snmp (0.3.0) #6

Merged
christianmanivong merged 1 commits from feat/snmp-agent-template into main 2026-10-17 06:48:20 +00:00
Owner

Step 4 of NetOrk/netork#1105.

  • configure_snmp_agent(settings) steps: caller's community (read-only, viewDefault); source interface = the VLAN whose address is exactly the listen/management address (fixes the substring match of #3); saved; community verified in show snmp community.
  • Contact/location reported as not set (no verified JetStream CLI). Install/firewall steps say the agent is built in and sources are not enforced.
  • run_device_action, _action_fix_snmp, _detect_management_vlan gone; requirements name device-types 4.13 in both files.

Part of #3 (the get_snmp_config "public" default is still open) and #4.

Step 4 of NetOrk/netork#1105. - `configure_snmp_agent(settings)` steps: caller's community (read-only, viewDefault); source interface = the VLAN whose address is **exactly** the listen/management address (fixes the substring match of #3); saved; community verified in `show snmp community`. - Contact/location reported as not set (no verified JetStream CLI). Install/firewall steps say the agent is built in and sources are not enforced. - `run_device_action`, `_action_fix_snmp`, `_detect_management_vlan` gone; requirements name device-types 4.13 in both files. Part of #3 (the `get_snmp_config` "public" default is still open) and #4.
christianmanivong added 1 commit 2026-10-17 06:36:53 +00:00
feat!: configure_snmp_agent with the caller's values replaces fix_snmp (0.3.0)
Tests / Test (Python 3.10) (pull_request) Successful in 17s
Tests / Test (Python 3.11) (pull_request) Successful in 17s
Tests / Test (Python 3.12) (pull_request) Successful in 21s
c2f0f7c20a
fix_snmp hard-coded community "public" and found the management VLAN
for the source interface with a substring match, so 10.0.0.1 matched
10.0.0.10 and a DNS name never matched (#3).

The driver implements napalm-device-types 4.13's configure_snmp_agent
steps: the caller's community (read-only, viewDefault), the source
interface set to the VLAN whose address is exactly the listen address
or the management address, configuration saved, and the community
checked in show snmp community. Contact and location are reported as
not set; there is no verified CLI for them on this switch. A value
that would break the CLI is refused.

The requirements now name napalm-device-types 4.13 in both files.

BREAKING CHANGE: run_device_action is removed.

Part of #3 and #4.
christianmanivong merged commit 03300b7954 into main 2026-10-17 06:48:20 +00:00
christianmanivong deleted branch feat/snmp-agent-template 2026-10-17 06:48:20 +00:00
Sign in to join this conversation.