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:51:41 +0200 |
commit | 044e9dc8bc7e3d946b0ba1f1edfe06b5323aeadd (patch) | |
tree | 1d0f7a16d734922a47fbf9c5bddf29bd7fac89c9 | |
parent | 3600f42ba23fc42de5f13b9d79c24f6fa0043187 (diff) | |
download | vyos-1x-044e9dc8bc7e3d946b0ba1f1edfe06b5323aeadd.tar.gz vyos-1x-044e9dc8bc7e3d946b0ba1f1edfe06b5323aeadd.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
(cherry picked from commit e687502b1cf4a3e15c562a3662afcbe0776b1fe7)
-rwxr-xr-x | 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 9b9d982d1..e6dbd861b 100755 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -1407,7 +1407,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 MSS value for IPv4 TCP connections tmp = dict_search('ip.adjust_mss', config) |