diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-05-30 09:04:34 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-06-03 00:32:36 +0000 |
commit | e9c9d1a1e4f1bf876892b6e58f7288d36180889f (patch) | |
tree | 043f2f1f2087c4577479f0416a24c292a9149646 /src/conf_mode | |
parent | aef116371f786f5d711731fdc712ae83dc4a34e2 (diff) | |
download | vyos-1x-e9c9d1a1e4f1bf876892b6e58f7288d36180889f.tar.gz vyos-1x-e9c9d1a1e4f1bf876892b6e58f7288d36180889f.zip |
T5241: Support netns for veth and dummy interfaces
Add netns configuration for dummy and virtual-ethernet interfaces
Change Interface class to get/set data to netns
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: |