summaryrefslogtreecommitdiff
path: root/src/validators/interface-name
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-24 21:53:41 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-24 21:54:47 +0100
commitede8217b6345b58da85f68ca024b54e04fd6348c (patch)
tree94e3f8959696617864360f4ec2285fb34dff9d56 /src/validators/interface-name
parentfe51dff356a44cb53d9b3ec9bc2bba0e719d6078 (diff)
downloadvyos-1x-ede8217b6345b58da85f68ca024b54e04fd6348c.tar.gz
vyos-1x-ede8217b6345b58da85f68ca024b54e04fd6348c.zip
validators: interface-name script must also support VLAN interfaces
(cherry picked from commit 25b86442d987bf57a801a607648527aaf6158d69)
Diffstat (limited to 'src/validators/interface-name')
-rwxr-xr-xsrc/validators/interface-name2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validators/interface-name b/src/validators/interface-name
index 8e337b401..72e9fd54a 100755
--- a/src/validators/interface-name
+++ b/src/validators/interface-name
@@ -17,7 +17,7 @@
import re
import sys
-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$'
+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]+(.\d+)?|lo$'
if __name__ == '__main__':
if len(sys.argv) != 2: