summaryrefslogtreecommitdiff
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:53:54 +0100
commit25b86442d987bf57a801a607648527aaf6158d69 (patch)
treeb091baa8553b5a46091b68932e2c8f7ed271ea39
parent913cd3c8809ea8a17ede7608654e956dcf718980 (diff)
downloadvyos-1x-25b86442d987bf57a801a607648527aaf6158d69.tar.gz
vyos-1x-25b86442d987bf57a801a607648527aaf6158d69.zip
validators: interface-name script must also support VLAN interfaces
-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: