summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJoe Groocock <me@frebib.net>2023-05-10 19:17:28 +0000
committerJoe Groocock <me@frebib.net>2023-05-10 19:17:28 +0000
commitf5cc8453860568351cd9b3b7a05d06e1462460e8 (patch)
tree6bf05ef779231198835aebedce2a5b876d074f02 /python
parent70e476760a9c5b42a5d3f8647e3b4ac361472871 (diff)
downloadvyos-1x-f5cc8453860568351cd9b3b7a05d06e1462460e8.tar.gz
vyos-1x-f5cc8453860568351cd9b3b7a05d06e1462460e8.zip
veth: T3829: Allow moving veth into netns
This makes netns infinitely more useful as they can be chained together in many ways to build complex network structures all on the host. Signed-off-by: Joe Groocock <me@frebib.net>
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig/interface.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py
index f62b9f7d2..2f1d5eb96 100644
--- a/python/vyos/ifconfig/interface.py
+++ b/python/vyos/ifconfig/interface.py
@@ -532,7 +532,7 @@ class Interface(Control):
return None
# As a PoC we only allow 'dummy' interfaces
- if 'dum' not in self.ifname:
+ if not ('dum' in self.ifname or 'veth' in self.ifname):
return None
# Check if interface realy exists in namespace