diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-11-04 16:16:25 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2025-11-04 16:24:29 +0100 |
| commit | 2f5ced44d12f3e92a22cc43eb5f4e7df4b7f062f (patch) | |
| tree | 6886802c6e999ff78068bf91ff2983216bb75773 /interface-definitions/include/haproxy/timeout-check.xml.i | |
| parent | e1b7b865a63454ae4b8f840c94ab599633faaf7f (diff) | |
| download | vyos-1x-2f5ced44d12f3e92a22cc43eb5f4e7df4b7f062f.tar.gz vyos-1x-2f5ced44d12f3e92a22cc43eb5f4e7df4b7f062f.zip | |
veth: T7990: fix stale DHCP clients when removing virtual Ethernet pairs
When removing a veth interface, the kernel automatically deletes its peer
interface, since veth devices always exist in pairs. However, this automatic
removal does not trigger the remove() helper in vyos.ifconfig.interfaces, which
can leave associated DHCP(v6) clients running indefinitely.
For example:
ip link add veth0 type veth peer name veth1
ip link del dev veth1
Removing veth1 will also delete veth0 in the kernel, but the VyOS cleanup
routines are never called for veth0. This patch ensures that peer removal
correctly purges both interfaces and their associated state.
This drops the workarounds in veth smoketest and falls back to the common
interface smoketests from the inherited base class.
Diffstat (limited to 'interface-definitions/include/haproxy/timeout-check.xml.i')
0 files changed, 0 insertions, 0 deletions
