summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-05 18:35:07 +0200
committerGitHub <noreply@github.com>2022-04-05 18:35:07 +0200
commitbe57ae38bb7c5a12e783e8be9de9142a6bd4e02b (patch)
tree93793baa1aaf9a47cc423f4ddaa3a84ef638a114 /python
parent806ff50bf1a970d731c2227f9d2cd2342b8a1b4e (diff)
parentd6e22b28887c7a3f7d2f8b955c2e90bcadaeeeba (diff)
downloadvyos-1x-be57ae38bb7c5a12e783e8be9de9142a6bd4e02b.tar.gz
vyos-1x-be57ae38bb7c5a12e783e8be9de9142a6bd4e02b.zip
Merge pull request #1270 from sever-sever/T4331
interfaces: T4331: Fix assign link-local static IPv6 addr to vrf
Diffstat (limited to 'python')
-rwxr-xr-xpython/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 d6906a061..585a605e4 100755
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -1434,9 +1434,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)
@@ -1451,6 +1448,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 MSS value for IPv4 TCP connections
tmp = dict_search('ip.adjust_mss', config)
value = tmp if (tmp != None) else '0'