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.
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.
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.
LinuxDrivermixes 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_commanduses 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, otherwisesudo -n; when sudo refuses, the mixin reads again unprivileged.Tests: the getter goes over
run_commandand neversend_command; without a sudo password the whole script runs undersudo -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.