get_config stub returns {} and takes no arguments #13

Closed
opened 2026-11-12 14:29:14 +00:00 by christianmanivong · 0 comments
Owner

Priority: P3 (important, not urgent): a false standing warning on every Sonos device, no data lost.

SonosDriver.get_config(self) overrides NAPALM's stub with return {} and accepts no parameters. netOrk's poll calls get_config(retrieve="running"); because the driver overrides the stub, netOrk treats the getter as implemented. The call then fails with a TypeError (unexpected keyword argument), and netOrk records it as a failed configuration backup (config_backup_failed) on every poll.

A Sonos speaker has no configuration export. Fix: drop the override so NAPALM's NotImplementedError stub stays. netOrk then reports the backup as "not covered" instead of "failing". Same fix as NAPALM/napalm-zyxel#22.

The other return {} stubs for NAPALM getters (get_environment, get_optics, ...) have the same shape and are worth checking in the same pass.

Priority: P3 (important, not urgent): a false standing warning on every Sonos device, no data lost. `SonosDriver.get_config(self)` overrides NAPALM's stub with `return {}` and accepts no parameters. netOrk's poll calls `get_config(retrieve="running")`; because the driver overrides the stub, netOrk treats the getter as implemented. The call then fails with a `TypeError` (unexpected keyword argument), and netOrk records it as a failed configuration backup (`config_backup_failed`) on every poll. A Sonos speaker has no configuration export. Fix: drop the override so NAPALM's `NotImplementedError` stub stays. netOrk then reports the backup as "not covered" instead of "failing". Same fix as NAPALM/napalm-zyxel#22. The other `return {}` stubs for NAPALM getters (`get_environment`, `get_optics`, ...) have the same shape and are worth checking in the same pass.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-sonos#13