diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-24 21:53:41 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-24 21:53:54 +0100 |
commit | 25b86442d987bf57a801a607648527aaf6158d69 (patch) | |
tree | b091baa8553b5a46091b68932e2c8f7ed271ea39 /src | |
parent | 913cd3c8809ea8a17ede7608654e956dcf718980 (diff) | |
download | vyos-1x-25b86442d987bf57a801a607648527aaf6158d69.tar.gz vyos-1x-25b86442d987bf57a801a607648527aaf6158d69.zip |
validators: interface-name script must also support VLAN interfaces
Diffstat (limited to 'src')
-rwxr-xr-x | src/validators/interface-name | 2 |
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: |