New fix template LldpAgentMixin.configure_lldp_agent(interfaces) in fixes.py, built like SnmpAgentMixin: install (ensure_package(LLDP_AGENT_PACKAGE)), configure (_write_lldp_agent_config(names), the one step a driver implements), start (manage_service(LLDP_AGENT_SERVICE, "enable") then "restart", so lldpd reads the new interface list). Both attributes default to lldpd; an empty interface list raises ValueError before anything changes. Not mixed into any role base.
Why: NAPALM/napalm-openwrt#8 — the LLDP getters used to start lldpd and rewrite its interface list on every poll. Decision: getters only read; the caller (netOrk, NetOrk/netork#1842) sets lldpd up on the interfaces it chooses.
Tested: 6 new tests (failed first at import) + the check that no role base offers it. pytest 1054 passed, ruff, mypy, napalm-standard check/ratchet green. CHANGELOG [Unreleased] → Added (MINOR).
Merge order: this → release → napalm-openwrt (#24, then feat/lldp-agent-setup with the floor raised) → netOrk pins + NetOrk/netork#1842.
New fix template `LldpAgentMixin.configure_lldp_agent(interfaces)` in `fixes.py`, built like `SnmpAgentMixin`: **install** (`ensure_package(LLDP_AGENT_PACKAGE)`), **configure** (`_write_lldp_agent_config(names)`, the one step a driver implements), **start** (`manage_service(LLDP_AGENT_SERVICE, "enable")` then `"restart"`, so lldpd reads the new interface list). Both attributes default to `lldpd`; an empty interface list raises `ValueError` before anything changes. Not mixed into any role base.
Why: NAPALM/napalm-openwrt#8 — the LLDP getters used to start lldpd and rewrite its interface list on every poll. Decision: getters only read; the caller (netOrk, NetOrk/netork#1842) sets lldpd up on the interfaces it chooses.
Tested: 6 new tests (failed first at import) + the check that no role base offers it. pytest 1054 passed, ruff, mypy, `napalm-standard check`/`ratchet` green. CHANGELOG [Unreleased] → Added (MINOR).
Merge order: this → release → napalm-openwrt (#24, then feat/lldp-agent-setup with the floor raised) → netOrk pins + NetOrk/netork#1842.
LLDP getters used to install, start and reconfigure lldpd on their own,
on every poll. Getters only read now, so starting the agent needs an
action the application calls. The template installs the agent through
ensure_package, has the driver write the interfaces it runs on, then
enables and restarts it through manage_service. The caller names the
interfaces: an agent on every interface also advertises on a WAN port.
Refs NAPALM/napalm-openwrt#8
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.
New fix template
LldpAgentMixin.configure_lldp_agent(interfaces)infixes.py, built likeSnmpAgentMixin: install (ensure_package(LLDP_AGENT_PACKAGE)), configure (_write_lldp_agent_config(names), the one step a driver implements), start (manage_service(LLDP_AGENT_SERVICE, "enable")then"restart", so lldpd reads the new interface list). Both attributes default tolldpd; an empty interface list raisesValueErrorbefore anything changes. Not mixed into any role base.Why: NAPALM/napalm-openwrt#8 — the LLDP getters used to start lldpd and rewrite its interface list on every poll. Decision: getters only read; the caller (netOrk, NetOrk/netork#1842) sets lldpd up on the interfaces it chooses.
Tested: 6 new tests (failed first at import) + the check that no role base offers it. pytest 1054 passed, ruff, mypy,
napalm-standard check/ratchetgreen. CHANGELOG [Unreleased] → Added (MINOR).Merge order: this → release → napalm-openwrt (#24, then feat/lldp-agent-setup with the floor raised) → netOrk pins + NetOrk/netork#1842.