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

Merged
christianmanivong merged 1 commits from feat/fix-templates-12 into main 2026-10-16 23:07:00 +00:00
Owner

Step 4 of NetOrk/netork#1105 for the BSDs. Needs napalm-device-types 4.13 (merged).

  • configure_snmp_agent(settings) steps: net-snmp, snmpd.conf with one rocommunity line per allowed source (staged unprivileged, installed by root), snmpd enabled/restarted. pf/ipfw untouched (operator's rule sets). Bad community/text refused.
  • get_management_peer() from SSH_CONNECTION; ensure_package from the base package.
  • run_device_action/fix_snmp, the local snmpget probe and the built-in public/Managed by netOrk are gone; get_snmp_config no longer assumes public.

Merge order: after NetOrk/netork#1130 (netOrk asks for the template, falls back to the old action) and with the pin bump in netOrk.

Part of #12 (OpenBSD new_version display text still open).

Step 4 of NetOrk/netork#1105 for the BSDs. Needs napalm-device-types 4.13 (merged). - `configure_snmp_agent(settings)` steps: net-snmp, `snmpd.conf` with one `rocommunity` line per allowed source (staged unprivileged, installed by root), snmpd enabled/restarted. pf/ipfw untouched (operator's rule sets). Bad community/text refused. - `get_management_peer()` from `SSH_CONNECTION`; `ensure_package` from the base package. - `run_device_action`/`fix_snmp`, the local snmpget probe and the built-in `public`/`Managed by netOrk` are gone; `get_snmp_config` no longer assumes `public`. **Merge order:** after NetOrk/netork#1130 (netOrk asks for the template, falls back to the old action) and with the pin bump in netOrk. Part of #12 (OpenBSD `new_version` display text still open).
christianmanivong added 1 commit 2026-10-16 22:53:10 +00:00
feat!: configure_snmp_agent with the caller's values replaces fix_snmp (0.3.0)
CI / test (3.10) (push) Successful in 28s
CI / test (3.11) (push) Successful in 23s
CI / test (3.12) (push) Successful in 29s
CI / test (3.10) (pull_request) Successful in 26s
CI / test (3.11) (pull_request) Successful in 30s
CI / test (3.12) (pull_request) Successful in 32s
ee0200462b
fix_snmp wrote an application's snmpd.conf (community public, Managed
by netOrk, netork@localhost) and judged itself by a local snmpget.

The drivers implement napalm-device-types 4.13's SnmpAgentMixin steps
instead: net-snmp installed, snmpd.conf with one rocommunity line per
allowed source (staged without privilege, installed by root), snmpd
enabled and restarted. pf and ipfw rules stay the operator's. A
community or text that would break the file is refused. The caller
verifies with its own SNMP client.

Also get_management_peer() from SSH_CONNECTION, ensure_package from
the base package, and get_snmp_config no longer assumes "public".

BREAKING CHANGE: run_device_action is removed. Requires
napalm-device-types 4.13.

Part of #12 (the OpenBSD new_version text is still open).
christianmanivong merged commit 68dd818da6 into main 2026-10-16 23:07:00 +00:00
christianmanivong deleted branch feat/fix-templates-12 2026-10-16 23:07:01 +00:00
Sign in to join this conversation.