summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-10-02 18:50:38 +0200
committerChristian Poessinger <christian@poessinger.com>2021-10-02 18:50:38 +0200
commite687502b1cf4a3e15c562a3662afcbe0776b1fe7 (patch)
tree04aa873e0bee9b0f1363c854a67ad853a3e2ce6b /python
parent8e6c48563d1612916bd7fcc665d70bfa77ec5667 (diff)
downloadvyos-1x-e687502b1cf4a3e15c562a3662afcbe0776b1fe7.tar.gz
vyos-1x-e687502b1cf4a3e15c562a3662afcbe0776b1fe7.zip
vyos.ifconfig: T3883: bugfix VRF deletion
We can not pass None as VRF name, this raises an exception. OSError: [Errno 255] failed to run command: ip link set dev eth2 master None
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig/interface.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index 709c70b65..7f712d98f 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -1304,7 +1304,7 @@ class Interface(Control):
# unbinding will call 'ip link set dev eth0 nomaster' which will
# also drop the interface out of a bridge or bond - thus this is
# checked before
- self.set_vrf(config.get('vrf', None))
+ self.set_vrf(config.get('vrf', ''))
# Configure ARP cache timeout in milliseconds - has default value
tmp = dict_search('ip.arp_cache_timeout', config)