summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-03 15:20:45 +0200
committerChristian Breunig <christian@breunig.cc>2023-09-05 19:36:07 +0200
commit6c32e17a75199f9acf9e2c33b3480fc27257622d (patch)
tree9f1d61bcf1bdb985971e5f0656cb29c6b7098970 /src/conf_mode
parent00a9f6a39f556ee6eb8ac669dd86f5095c21b22f (diff)
downloadvyos-1x-6c32e17a75199f9acf9e2c33b3480fc27257622d.tar.gz
vyos-1x-6c32e17a75199f9acf9e2c33b3480fc27257622d.zip
netns: T5241: simplify network namespace handling
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-dummy.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/conf_mode/interfaces-dummy.py b/src/conf_mode/interfaces-dummy.py
index a02ddeb51..db768b94d 100755
--- a/src/conf_mode/interfaces-dummy.py
+++ b/src/conf_mode/interfaces-dummy.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2019-2021 VyOS maintainers and contributors
+# Copyright (C) 2019-2023 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -55,10 +55,7 @@ def generate(dummy):
return None
def apply(dummy):
- if 'netns' in dummy:
- d = DummyIf(ifname=dummy['ifname'], netns=dummy['netns'])
- else:
- d = DummyIf(dummy['ifname'])
+ d = DummyIf(**dummy)
# Remove dummy interface
if 'deleted' in dummy: