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:20:08 +0000
commit8a98235b5d7f19a0f90cbd536097b3aef0ea29d7 (patch)
tree1d68ac9e72e0026d56df0a9f2ea51203afcae32e /src/validators
parent5bdae44e36f61d29a9f6a2a012e788e9c0311407 (diff)
downloadvyos-1x-8a98235b5d7f19a0f90cbd536097b3aef0ea29d7.tar.gz
vyos-1x-8a98235b5d7f19a0f90cbd536097b3aef0ea29d7.zip
wwan: T3620: rename "wirelessmodem wlm" interfaces to new wwan interface tree
(cherry picked from commit c2a1c071e7d0a9ca754d7f5016eed7db188b3d1a)
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)