fix_snmp becomes the SNMP template's steps #12

Open
opened 2026-10-14 08:22:58 +00:00 by christianmanivong · 1 comment
Owner

run_device_action("fix_snmp") (base.py ~409) installs net-snmp, writes the application's config (_SNMPD_CONF: rocommunity public, Managed by netOrk, netork@localhost, the same text as napalm-linux), starts it and decides success from an snmpget probe.

Change: implement the steps of configure_snmp_agent (napalm-unix carries the net-snmp parts; this driver only the BSD service and package commands), then remove run_device_action. get_snmp_config keeps reading, but drops the assumed public/161/2c defaults when nothing matched.

Also openbsd.py: new_version is display text ("N patches: a … b"). Return the patch list as data.

#8 (sudo password into snmpd.conf) is fixed first, independently.

Needs NAPALM/napalm-device-types#33.

Part of NetOrk/netork#1105. Plan: NAPALM/napalm-device-types docs/STRUCTURE.md (branch docs/structure-plan).

Prio P3.

`run_device_action("fix_snmp")` (`base.py` ~409) installs net-snmp, writes the application's config (`_SNMPD_CONF`: `rocommunity public`, `Managed by netOrk`, `netork@localhost`, the same text as napalm-linux), starts it and decides success from an `snmpget` probe. **Change:** implement the steps of `configure_snmp_agent` (napalm-unix carries the net-snmp parts; this driver only the BSD service and package commands), then remove `run_device_action`. `get_snmp_config` keeps reading, but drops the assumed `public`/161/`2c` defaults when nothing matched. Also `openbsd.py`: `new_version` is display text (`"N patches: a … b"`). Return the patch list as data. #8 (sudo password into snmpd.conf) is fixed first, independently. Needs NAPALM/napalm-device-types#33. Part of NetOrk/netork#1105. Plan: NAPALM/napalm-device-types `docs/STRUCTURE.md` (branch `docs/structure-plan`). Prio P3.
Author
Owner

Status 2026-10-18, checked against the pin on NetOrk/netork main.

Done: the four steps of configure_snmp_agent plus get_management_peer (0.3.0); run_device_action is gone; get_snmp_config no longer assumes public (community "" when nothing matched).

Rest: openbsd.py:82 still reports new_version as display text (the patch summary) instead of the patch list as data.

Status 2026-10-18, checked against the pin on NetOrk/netork main. **Done:** the four steps of `configure_snmp_agent` plus `get_management_peer` (0.3.0); `run_device_action` is gone; `get_snmp_config` no longer assumes `public` (community "" when nothing matched). **Rest:** `openbsd.py:82` still reports `new_version` as display text (the patch summary) instead of the patch list as data.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-bsd#12