diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-10-02 18:50:38 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-10-02 18:50:38 +0200 |
commit | e687502b1cf4a3e15c562a3662afcbe0776b1fe7 (patch) | |
tree | 04aa873e0bee9b0f1363c854a67ad853a3e2ce6b | |
parent | 8e6c48563d1612916bd7fcc665d70bfa77ec5667 (diff) | |
download | vyos-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
-rw-r--r-- | python/vyos/ifconfig/interface.py | 2 |
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) |