summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/control.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-28 07:19:06 +0100
committerGitHub <noreply@github.com>2020-03-28 07:19:06 +0100
commit8247524dc18e2b8a97227e6c439051666f85d9a0 (patch)
tree076cfbb75245263e3b2bf0cba18d0d7f7409a1e1 /python/vyos/ifconfig/control.py
parentf0b3da2b36b8efd97c9fd6ca4e30437a7169b37b (diff)
parent9744b8e10fcc58a0266e4e0e02dd593c71406b5f (diff)
downloadvyos-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/vyos/ifconfig/control.py')
-rw-r--r--python/vyos/ifconfig/control.py6
1 files changed, 0 insertions, 6 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)