summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-18 08:44:05 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-18 08:44:47 +0100
commitf67568bc2307706116f5509fca3a188dc4ab5d48 (patch)
treea0844709b87dd9b0d74d3be177c13ddb939edfc3 /src
parent83bcd13775323bec35d018223029e9a8b13179c8 (diff)
downloadvyos-1x-f67568bc2307706116f5509fca3a188dc4ab5d48.tar.gz
vyos-1x-f67568bc2307706116f5509fca3a188dc4ab5d48.zip
validator: T3326: add missing interfaces (e.g. ppp and l2tpv3)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/op_mode/vtysh_wrapper.sh4
-rwxr-xr-xsrc/validators/interface-name2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/op_mode/vtysh_wrapper.sh b/src/op_mode/vtysh_wrapper.sh
new file mode 100755
index 000000000..47d88330b
--- /dev/null
+++ b/src/op_mode/vtysh_wrapper.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+declare -a tmp
+tmp=$@
+vtysh -c "$tmp"
diff --git a/src/validators/interface-name b/src/validators/interface-name
index 32cd42fbd..8e337b401 100755
--- a/src/validators/interface-name
+++ b/src/validators/interface-name
@@ -17,7 +17,7 @@
import re
import sys
-pattern = '^(br|bond|dum|en|eth|gnv|peth|pppoe|tun|vti|vtun|vxlan|wg|wlan)[0-9]+|lo$'
+pattern = '^(bond|br|dum|en|ersp|eth|gnv|lan|l2tp|l2tpeth|macsec|peth|ppp|pppoe|pptp|sstp|tun|vti|vtun|vxlan|wg|wlan|wlm)[0-9]+|lo$'
if __name__ == '__main__':
if len(sys.argv) != 2: