feat!: fix templates with the caller's values replace run_device_action (0.3.0) #25

Merged
christianmanivong merged 2 commits from feat/fix-templates into master 2026-10-17 06:48:19 +00:00
Owner

Step 4 of NetOrk/netork#1105.

  • configure_snmp_agent(settings): net-snmp, snmpd.conf with one rocommunity per allowed source (mktemp + install, no fixed /tmp/netork_snmpd.conf), ufw only for those sources (pve-firewall untouched), snmpd enabled/restarted.
  • get_management_peer() from SSH_CONNECTION.
  • install_package(name) per contract (raises on apt failure) → ensure_package from the base package replaces install_lldpd.
  • Every step reads its exit status (_exec_ssh_command has none, so a marker).
  • run_device_action, _action_fix_snmp, _action_install_lldpd gone.

netOrk asks for the templates first (NetOrk/netork#1130), so this needs only the pin bump.

Part of #24 (the transport rework #17 and the provisioning/warnings parts stay open).

Step 4 of NetOrk/netork#1105. - `configure_snmp_agent(settings)`: net-snmp, `snmpd.conf` with one `rocommunity` per allowed source (mktemp + install, no fixed `/tmp/netork_snmpd.conf`), ufw only for those sources (pve-firewall untouched), snmpd enabled/restarted. - `get_management_peer()` from `SSH_CONNECTION`. - `install_package(name)` per contract (raises on apt failure) → `ensure_package` from the base package replaces `install_lldpd`. - Every step reads its exit status (`_exec_ssh_command` has none, so a marker). - `run_device_action`, `_action_fix_snmp`, `_action_install_lldpd` gone. netOrk asks for the templates first (NetOrk/netork#1130), so this needs only the pin bump. Part of #24 (the transport rework #17 and the provisioning/warnings parts stay open).
christianmanivong added 1 commit 2026-10-17 06:28:51 +00:00
feat!: fix templates with the caller's values replace run_device_action (0.3.0)
CI / test (3.10) (push) Successful in 33s
CI / test (3.11) (push) Successful in 32s
CI / test (3.12) (push) Successful in 35s
CI / test (3.10) (pull_request) Successful in 32s
CI / test (3.11) (pull_request) Successful in 30s
CI / test (3.12) (pull_request) Successful in 35s
890e84ca6b
fix_snmp overwrote snmpd.conf with an application's values (community
"public", "Managed by netOrk", netork@localhost) through a fixed
/tmp/netork_snmpd.conf, and opened ufw for a /24 guessed from ss;
install_lldpd was an action of its own. Neither read an exit status.

The driver implements napalm-device-types 4.13's templates instead:
- configure_snmp_agent(settings): net-snmp installed, snmpd.conf with
  one rocommunity line per allowed source (mktemp, install as root),
  ufw opened for those sources only (pve-firewall stays the
  operator's), snmpd enabled and restarted;
- get_management_peer() from SSH_CONNECTION;
- install_package(name), as the contract says (raises when apt fails),
  so ensure_package comes from the base package.
Every step reads its exit status.

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

Part of #24.
christianmanivong added 1 commit 2026-10-17 06:29:06 +00:00
docs: changelog for 0.3.0
CI / test (3.10) (push) Successful in 32s
CI / test (3.11) (push) Successful in 30s
CI / test (3.12) (push) Successful in 35s
CI / test (3.10) (pull_request) Successful in 32s
CI / test (3.11) (pull_request) Successful in 30s
CI / test (3.12) (pull_request) Successful in 34s
377e849237
christianmanivong merged commit 8cf334aaf5 into master 2026-10-17 06:48:19 +00:00
christianmanivong deleted branch feat/fix-templates 2026-10-17 06:48:19 +00:00
Sign in to join this conversation.