summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-10 21:35:26 +0200
committerGitHub <noreply@github.com>2023-05-10 21:35:26 +0200
commit834a786a308de0ce23e9dbee2a91711305b6e51a (patch)
tree01dd03ae05542b971cf9e85a26e7c83f104afd23 /python
parente5e6a32eced3a1a00cb1f37e877ab527df308e94 (diff)
parentf5cc8453860568351cd9b3b7a05d06e1462460e8 (diff)
downloadvyos-1x-834a786a308de0ce23e9dbee2a91711305b6e51a.tar.gz
vyos-1x-834a786a308de0ce23e9dbee2a91711305b6e51a.zip
Merge pull request #1996 from frebib/veth-netns
veth: T3829: Allow moving veth into netns
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