diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-28 07:19:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 07:19:06 +0100 |
commit | 8247524dc18e2b8a97227e6c439051666f85d9a0 (patch) | |
tree | 076cfbb75245263e3b2bf0cba18d0d7f7409a1e1 /python | |
parent | f0b3da2b36b8efd97c9fd6ca4e30437a7169b37b (diff) | |
parent | 9744b8e10fcc58a0266e4e0e02dd593c71406b5f (diff) | |
download | vyos-1x-8247524dc18e2b8a97227e6c439051666f85d9a0.tar.gz vyos-1x-8247524dc18e2b8a97227e6c439051666f85d9a0.zip |
Merge pull request #277 from thomas-mangin/T2057-fix-force
ifconfig: T2057: option forcing
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/ifconfig/control.py | 6 | ||||
-rw-r--r-- | python/vyos/ifconfig/interface.py | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/python/vyos/ifconfig/control.py b/python/vyos/ifconfig/control.py index f7b032478..39b6945c8 100644 --- a/python/vyos/ifconfig/control.py +++ b/python/vyos/ifconfig/control.py @@ -55,9 +55,6 @@ class Control(Register): """ Using the defined names, set data write to sysfs. """ - if not value and not self._command_set[name].get('force', False): - return None - # the code can pass int as int value = str(value) @@ -115,9 +112,6 @@ class Control(Register): """ Using the defined names, set data write to sysfs. """ - if not value and not self._sysfs_set[name].get('force', False): - return None - # the code can pass int as int value = str(value) diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index f2b43fd35..8e37d6abd 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -59,7 +59,6 @@ class Interface(DHCP): 'shellcmd': 'ip link set dev {ifname} address {value}', }, 'vrf': { - 'force': True, 'convert': lambda v: f'master {v}' if v else 'nomaster', 'shellcmd': 'ip link set dev {ifname} {value}', }, |