summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/validators/vrf-name2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validators/vrf-name b/src/validators/vrf-name
index b1a2527d8..11c453f4d 100755
--- a/src/validators/vrf-name
+++ b/src/validators/vrf-name
@@ -33,7 +33,7 @@ if len(argv) == 2:
# VRF instances should not be named after regular interface names like bond0,
# br10 and so on - this can cause a lot of confusion/trouble
pattern = "^(?!(bond|br|dum|eth|lan|eno|ens|enp|enx|gnv|ipoe|l2tp|l2tpeth|" \
- "vtun|ppp|pppoe|peth|tun|vti|vxlan|wg|wlan|wlm)[0-9]+).*$"
+ "vtun|ppp|pppoe|peth|tun|vti|vxlan|wg|wlan|wlm)\d+(\.\d+(v.+)?)?$).*$"
if re.match(pattern, argv[1]):
exit(0)