feat: report the virtual IPs vip-manager and keepalived declare #22

Merged
christianmanivong merged 1 commits from feature/virtual-ips into master 2026-10-08 10:47:08 +00:00
Owner

LinuxDriver mixes in napalm-device-types' VirtualIpsMixin (4.2.0, NAPALM/napalm-device-types#24): get_virtual_ips() reports the addresses vip-manager and keepalived let float onto the host. For NetOrk/netork#829.

The hook _run_virtual_ips_command uses the exec channel (run_command), not the PTY: with its awk filter the command is about 4 kB, past the line an interactive shell reliably takes. Privileges as everywhere in this driver: root directly, a sudo password on stdin, otherwise sudo -n; when sudo refuses, the mixin reads again unprivileged.

Tests: the getter goes over run_command and never send_command; without a sudo password the whole script runs under sudo -n sh -c; a refused sudo falls back. Checked read-only against db-01 and db-02.

napalm-device-types>=4.2.0, version 0.4.0.

`LinuxDriver` mixes in napalm-device-types' `VirtualIpsMixin` (4.2.0, NAPALM/napalm-device-types#24): `get_virtual_ips()` reports the addresses vip-manager and keepalived let float onto the host. For NetOrk/netork#829. The hook `_run_virtual_ips_command` uses the exec channel (`run_command`), not the PTY: with its awk filter the command is about 4 kB, past the line an interactive shell reliably takes. Privileges as everywhere in this driver: root directly, a sudo password on stdin, otherwise `sudo -n`; when sudo refuses, the mixin reads again unprivileged. Tests: the getter goes over `run_command` and never `send_command`; without a sudo password the whole script runs under `sudo -n sh -c`; a refused sudo falls back. Checked read-only against db-01 and db-02. `napalm-device-types>=4.2.0`, version 0.4.0.
christianmanivong added 1 commit 2026-10-08 10:41:13 +00:00
feat: report the virtual IPs vip-manager and keepalived declare
CI / test (3.10) (pull_request) Successful in 43s
CI / test (3.11) (pull_request) Successful in 53s
CI / test (3.12) (pull_request) Successful in 53s
CI / test (3.10) (push) Successful in 44s
CI / test (3.11) (push) Successful in 40s
CI / test (3.12) (push) Successful in 38s
a78daccb56
LinuxDriver mixes in napalm-device-types' VirtualIpsMixin (4.2.0) and
carries its command on the exec channel: with the awk filter it is about
4 kB, past the line the PTY netmiko holds reliably takes. Root first,
then without it (NetOrk/netork#829).

Version 0.4.0.
christianmanivong merged commit 0268019743 into master 2026-10-08 10:47:08 +00:00
christianmanivong deleted branch feature/virtual-ips 2026-10-08 10:47:08 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-linux#22