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

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

Step 4 of NetOrk/netork#1105.

  • configure_snmp_agent(settings) steps on netgear_smart: community (read-only), contact, location from the caller via _apply_config_lines (any prompt, refused lines reported; fixes the config-prompt hang of #6), config mode always left, saved, community verified in show snmp. v7 firmware says it has no SNMP CLI.
  • run_device_action/_action_fix_snmp gone; napalm-device-types declared (≥ 4.13) in pyproject and requirements (#7).

Closes #6. Part of #7 (German message and dict mutation still open) and #8.

Step 4 of NetOrk/netork#1105. - `configure_snmp_agent(settings)` steps on netgear_smart: community (read-only), contact, location from the caller via `_apply_config_lines` (any prompt, refused lines reported; fixes the config-prompt hang of #6), config mode always left, saved, community verified in `show snmp`. v7 firmware says it has no SNMP CLI. - `run_device_action`/`_action_fix_snmp` gone; `napalm-device-types` declared (≥ 4.13) in pyproject and requirements (#7). Closes #6. Part of #7 (German message and dict mutation still open) and #8.
christianmanivong added 1 commit 2026-10-17 06:38:08 +00:00
feat!: configure_snmp_agent with the caller's values replaces fix_snmp (0.3.0)
CI / test (3.10) (push) Successful in 24s
CI / test (3.11) (push) Successful in 23s
CI / test (3.12) (push) Successful in 25s
CI / test (3.10) (pull_request) Successful in 24s
CI / test (3.11) (pull_request) Successful in 23s
CI / test (3.12) (pull_request) Successful in 24s
34554eade9
fix_snmp hard-coded community "public" and sent its config-mode line
through _send_command, which waits for the exec prompt: in config mode
it ran into its timeout and left the session there (#6).

netgear_smart implements napalm-device-types 4.13's configure_snmp_agent
steps: community (read-only), contact and location from the caller
through _apply_config_lines, which waits for any prompt and reports a
refused line; config mode is left in all cases; the configuration is
saved and the community checked in show snmp. v7 firmware, which has
no SNMP commands in its CLI, says so. A value that would break the CLI
is refused.

napalm-device-types is now declared in pyproject.toml and
requirements.txt (#7).

BREAKING CHANGE: run_device_action is removed.

Closes #6. Part of #7 and #8.
christianmanivong merged commit ff86370f2f into master 2026-10-17 06:48:21 +00:00
christianmanivong deleted branch feat/snmp-agent-template 2026-10-17 06:48:21 +00:00
Sign in to join this conversation.