diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-25 21:09:11 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-07-25 21:10:25 +0200 |
commit | 855351be628cf7d7a846d7ddf1140df030096bd5 (patch) | |
tree | 94133d4e07ea2b3ac70d0d50aab86e4267303762 /src | |
parent | fb94d0b6091e09099c972355886918ef63ee9d97 (diff) | |
download | vyos-1x-855351be628cf7d7a846d7ddf1140df030096bd5.tar.gz vyos-1x-855351be628cf7d7a846d7ddf1140df030096bd5.zip |
ifconfig: T2653: obey conding style
(cherry-picked from commit 08614557b679c59495b3bf629f763f9a4cc0ed25)
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-loopback.py | 4 |
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) |