diff options
author | Christian Breunig <christian@breunig.cc> | 2023-09-03 13:23:27 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-09-03 14:32:10 +0200 |
commit | 6ef163baa783c4bbda06493347b845529ae6b3e4 (patch) | |
tree | 6a47d4fa27872ee56595203ce129d2f1493b7b16 /src/conf_mode | |
parent | 1ae9c4162dc13844ec0f028a51b4b2d111954196 (diff) | |
parent | e9c9d1a1e4f1bf876892b6e58f7288d36180889f (diff) | |
download | vyos-1x-6ef163baa783c4bbda06493347b845529ae6b3e4.tar.gz vyos-1x-6ef163baa783c4bbda06493347b845529ae6b3e4.zip |
Merge branch 'T5241-control-edition' of https://github.com/sever-sever/vyos-1x into netns
* 'T5241-control-edition' of https://github.com/sever-sever/vyos-1x:
T5241: Support netns for veth and dummy interfaces
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/interfaces-dummy.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-dummy.py b/src/conf_mode/interfaces-dummy.py index e771581e1..a02ddeb51 100755 --- a/src/conf_mode/interfaces-dummy.py +++ b/src/conf_mode/interfaces-dummy.py @@ -55,7 +55,10 @@ def generate(dummy): return None def apply(dummy): - d = DummyIf(dummy['ifname']) + if 'netns' in dummy: + d = DummyIf(ifname=dummy['ifname'], netns=dummy['netns']) + else: + d = DummyIf(dummy['ifname']) # Remove dummy interface if 'deleted' in dummy: |