configure_snmp_agent(settings): snmpd installed when missing; community/contact/location in UCI, one com2sec/com2sec6 per allowed source (no sources → default; only IPv4 sources → IPv6 answers localhost only); the zone-resolving firewall step of the old fix, now limited to the sources (src_ip) and named Allow-SNMP; snmpd enabled, restarted, checked listening.
get_management_peer() from SSH_CONNECTION; ensure_package from the base package replaces install_lldpd/install_auc/install_coreutils_base64.
The shadowed second _action_fix_snmp in system_mixin.py is gone (#5).
Existing zone/rule/reload tests now run through the template.
Not changed here: the getter that rewrites lldpd's config (#8) — ensure_package("lldpd") no longer pins lldpd to the management interface itself.
Step 4 of NetOrk/netork#1105.
- `configure_snmp_agent(settings)`: snmpd installed when missing; community/contact/location in UCI, one `com2sec`/`com2sec6` per allowed source (no sources → `default`; only IPv4 sources → IPv6 answers localhost only); the zone-resolving firewall step of the old fix, now limited to the sources (`src_ip`) and named `Allow-SNMP`; snmpd enabled, restarted, checked listening.
- `get_management_peer()` from `SSH_CONNECTION`; `ensure_package` from the base package replaces `install_lldpd`/`install_auc`/`install_coreutils_base64`.
- The shadowed second `_action_fix_snmp` in `system_mixin.py` is gone (#5).
- Existing zone/rule/reload tests now run through the template.
Not changed here: the getter that rewrites lldpd's config (#8) — `ensure_package("lldpd")` no longer pins lldpd to the management interface itself.
Closes #5. Part of #13.
fix_snmp set no community at all and opened the management zone's
udp/161 to every source, with a rule named after an application; a
second fix_snmp in the system mixin was shadowed and never ran (#5).
install_lldpd, install_auc and install_coreutils_base64 were actions of
their own.
The driver implements napalm-device-types 4.13's templates instead:
- configure_snmp_agent(settings): snmpd installed when missing;
community, contact and location in UCI with one com2sec (com2sec6)
per allowed source; the zone-resolving firewall step of the old fix,
now limited to the sources (src_ip) and named Allow-SNMP; snmpd
enabled, restarted and listening;
- get_management_peer() from SSH_CONNECTION;
- ensure_package(name) from the base package, over install_package.
A community, contact or location that would break UCI is refused.
BREAKING CHANGE: run_device_action is removed. Requires
napalm-device-types 4.13.
Closes#5. Part of #13.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Step 4 of NetOrk/netork#1105.
configure_snmp_agent(settings): snmpd installed when missing; community/contact/location in UCI, onecom2sec/com2sec6per allowed source (no sources →default; only IPv4 sources → IPv6 answers localhost only); the zone-resolving firewall step of the old fix, now limited to the sources (src_ip) and namedAllow-SNMP; snmpd enabled, restarted, checked listening.get_management_peer()fromSSH_CONNECTION;ensure_packagefrom the base package replacesinstall_lldpd/install_auc/install_coreutils_base64._action_fix_snmpinsystem_mixin.pyis gone (#5).Not changed here: the getter that rewrites lldpd's config (#8) —
ensure_package("lldpd")no longer pins lldpd to the management interface itself.Closes #5. Part of #13.