summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-04-08 17:48:40 +0300
committerGitHub <noreply@github.com>2022-04-08 17:48:40 +0300
commit298ce87e8fc444cd42ec10a43a2eb446b71febd6 (patch)
tree32c6385abd91ae6f9c854d7e24535b2d596d0c97 /python/vyos/ifconfig
parent25d65249bd81f6405dcf6b6b94bb4ea23436d532 (diff)
parent409a2e1239e66cdac0cb244281ee725a16180dcf (diff)
downloadvyos-1x-298ce87e8fc444cd42ec10a43a2eb446b71febd6.tar.gz
vyos-1x-298ce87e8fc444cd42ec10a43a2eb446b71febd6.zip
Merge pull request #1273 from c-po/t4331-equuleus
T4331: IPv6 link local addresses are not configured when an interface is in a VRF (equuleus)
Diffstat (limited to 'python/vyos/ifconfig')
-rw-r--r--python/vyos/ifconfig/interface.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 214c8dcb1..9eed3acb9 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -1300,9 +1300,6 @@ class Interface(Control):
else:
self.del_addr(addr)
- for addr in new_addr:
- self.add_addr(addr)
-
# start DHCPv6 client when only PD was configured
if dhcpv6pd:
self.set_dhcpv6(True)
@@ -1317,6 +1314,10 @@ class Interface(Control):
# checked before
self.set_vrf(config.get('vrf', ''))
+ # Add this section after vrf T4331
+ for addr in new_addr:
+ self.add_addr(addr)
+
# Configure ARP cache timeout in milliseconds - has default value
tmp = dict_search('ip.arp_cache_timeout', config)
value = tmp if (tmp != None) else '30'