summaryrefslogtreecommitdiff
path: root/python/vyos/configdict.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-02-05 22:11:22 +0100
committerChristian Breunig <christian@breunig.cc>2025-02-05 22:11:22 +0100
commit68002a3839d259d40d9a7bd88fe72c7361679388 (patch)
tree869ef2888ce13fd28552d0b336103a9c61854513 /python/vyos/configdict.py
parentc40ff64dfcdbd9c597b686952769df9c106967cd (diff)
downloadveeos-1x-68002a3839d259d40d9a7bd88fe72c7361679388.tar.gz
veeos-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 'python/vyos/configdict.py')
-rw-r--r--python/vyos/configdict.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 5a353b110..a6594871e 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -492,10 +492,6 @@ def get_interface_dict(config, base, ifname='', recursive_defaults=True, with_pk
dhcp = is_node_changed(config, base + [ifname, 'dhcp-options'])
if dhcp: dict.update({'dhcp_options_changed' : {}})
- # Changine interface VRF assignemnts require a DHCP restart, too
- dhcp = is_node_changed(config, base + [ifname, 'vrf'])
- if dhcp: dict.update({'dhcp_options_changed' : {}})
-
# Some interfaces come with a source_interface which must also not be part
# of any other bond or bridge interface as it is exclusivly assigned as the
# Kernels "lower" interface to this new "virtual/upper" interface.