diff options
| author | Nataliia Solomko <natalirs1985@gmail.com> | 2026-02-04 14:55:34 +0200 |
|---|---|---|
| committer | Nataliia Solomko <natalirs1985@gmail.com> | 2026-03-19 18:07:08 +0200 |
| commit | 2a6a63391173e8cef9354a696e188e90f43def74 (patch) | |
| tree | 34f034c54421a7c3b4560fc728af96fccbe70757 /src/migration-scripts/openconnect | |
| parent | 7957857e6b5d6572d2c9831e0e66dac80e7a415e (diff) | |
| download | vyos-1x-2a6a63391173e8cef9354a696e188e90f43def74.tar.gz vyos-1x-2a6a63391173e8cef9354a696e188e90f43def74.zip | |
T8188: Preserve static IPv4 addresses flushed by dhclient
When dhclient renews/rebinds a lease, it calls "ip -4 addr flush dev
<interface>". This removes ALL IPv4 addresses, including static
addresses configured via VyOS (e.g., "set interfaces ethernet eth0
address 192.168.1.1/24").
The updated hook logic now intercepts the "ip -4 addr flush" command and replaces
it with a selective flush that only removes addresses marked as
"dynamic" by the kernel. DHCP-assigned addresses have the "dynamic" flag
set automatically.
Diffstat (limited to 'src/migration-scripts/openconnect')
0 files changed, 0 insertions, 0 deletions
