summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-25 19:27:05 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-25 19:27:05 +0200
commit08614557b679c59495b3bf629f763f9a4cc0ed25 (patch)
tree94fe8f26667f10117a29a4aabb7d143c9da16cb5 /src/conf_mode
parent82ee846c43d83513e4814a2e78b98b12f1ce453f (diff)
downloadvyos-1x-08614557b679c59495b3bf629f763f9a4cc0ed25.tar.gz
vyos-1x-08614557b679c59495b3bf629f763f9a4cc0ed25.zip
ifconfig: T2653: obey conding style
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-loopback.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-loopback.py b/src/conf_mode/interfaces-loopback.py
index 30a27abb4..193334443 100755
--- a/src/conf_mode/interfaces-loopback.py
+++ b/src/conf_mode/interfaces-loopback.py
@@ -45,8 +45,8 @@ def generate(loopback):
return None
def apply(loopback):
- l = LoopbackIf(loopback['ifname'])
- if 'deleted' in loopback.keys():
+ l = LoopbackIf(**loopback)
+ if 'deleted' in loopback:
l.remove()
else:
l.update(loopback)