diff options
author | Christian Breunig <christian@breunig.cc> | 2025-02-05 22:11:22 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2025-02-05 22:11:22 +0100 |
commit | 68002a3839d259d40d9a7bd88fe72c7361679388 (patch) | |
tree | 869ef2888ce13fd28552d0b336103a9c61854513 /tests | |
parent | c40ff64dfcdbd9c597b686952769df9c106967cd (diff) | |
download | vyos-1x-68002a3839d259d40d9a7bd88fe72c7361679388.tar.gz vyos-1x-68002a3839d259d40d9a7bd88fe72c7361679388.zip |
vyos.ifconfig: T5103: force dhclient restart on VRF change
Moving an interface in, out or between VRFs will not re-install the received
default route. This is because the dhclient binary is not restarted in the new
VRF. Dhclient itself will report an error like: "receive_packet failed on
eth0.10: Network is down".
Take the return value of vyos.ifconfig.Interface().set_vrf() into account to
forcefully restart the DHCP client process and optain a proper lease.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions