summaryrefslogtreecommitdiff
path: root/src/validators
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-12 13:17:13 +0200
committerChristian Poessinger <christian@poessinger.com>2021-06-13 09:36:35 +0200
commitc2a1c071e7d0a9ca754d7f5016eed7db188b3d1a (patch)
tree7852a72bb7e7412bcec63371dc8461f1cc6556ed /src/validators
parentc88d8999873db638aa2c05d479502cedd1afd142 (diff)
downloadvyos-1x-c2a1c071e7d0a9ca754d7f5016eed7db188b3d1a.tar.gz
vyos-1x-c2a1c071e7d0a9ca754d7f5016eed7db188b3d1a.zip
wwan: T3620: rename "wirelessmodem wlm" interfaces to new wwan interface tree
Diffstat (limited to 'src/validators')
-rwxr-xr-xsrc/validators/interface-name2
-rwxr-xr-xsrc/validators/vrf-name2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/validators/interface-name b/src/validators/interface-name
index 5bac671b1..105815eee 100755
--- a/src/validators/interface-name
+++ b/src/validators/interface-name
@@ -20,7 +20,7 @@ import re
from sys import argv
from sys import exit
-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$'
+pattern = '^(bond|br|dum|en|ersp|eth|gnv|lan|l2tp|l2tpeth|macsec|peth|ppp|pppoe|pptp|sstp|tun|vti|vtun|vxlan|wg|wlan|wwan)[0-9]+(.\d+)?|lo$'
if __name__ == '__main__':
if len(argv) != 2:
diff --git a/src/validators/vrf-name b/src/validators/vrf-name
index 7b6313888..c78a80776 100755
--- a/src/validators/vrf-name
+++ b/src/validators/vrf-name
@@ -34,7 +34,7 @@ if __name__ == '__main__':
exit(1)
pattern = "^(?!(bond|br|dum|eth|lan|eno|ens|enp|enx|gnv|ipoe|l2tp|l2tpeth|" \
- "vtun|ppp|pppoe|peth|tun|vti|vxlan|wg|wlan|wlm)\d+(\.\d+(v.+)?)?$).*$"
+ "vtun|ppp|pppoe|peth|tun|vti|vxlan|wg|wlan|wwan)\d+(\.\d+(v.+)?)?$).*$"
if not re.match(pattern, vrf):
exit(1)