diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-03 16:01:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 16:01:39 +0200 |
commit | e8d26b914a273911bc283c1ac14d934a4b29a0ba (patch) | |
tree | 9bf7cb6c6964dd5a54e1fa5fe1af60dd09d20344 /src | |
parent | 72d0d8768f03ce78dff29404e1e73ee39ff2fc39 (diff) | |
parent | 68b4090f3ee1e313ae6beb590608f257687e03f2 (diff) | |
download | vyos-1x-e8d26b914a273911bc283c1ac14d934a4b29a0ba.tar.gz vyos-1x-e8d26b914a273911bc283c1ac14d934a4b29a0ba.zip |
Merge pull request #294 from runborg/fix-vrf-rex
vrf: T31: Allow vrf name to look more like interface name
Diffstat (limited to 'src')
-rwxr-xr-x | src/validators/vrf-name | 2 |
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) |