summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-22 22:28:34 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-22 22:28:34 +0100
commitcfb2786fde8c17c2a105e1045ed273775c5eb473 (patch)
tree76b5180f63f3d41d031efc9ea961df564b165ece /interface-definitions
parentdc318d47cd180bd7bb1135fb5f7b00ce25c1c368 (diff)
downloadvyos-1x-cfb2786fde8c17c2a105e1045ed273775c5eb473.tar.gz
vyos-1x-cfb2786fde8c17c2a105e1045ed273775c5eb473.zip
interfaces: fix tagNode regex constraint (remove ^)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/interfaces-bridge.xml.in2
-rw-r--r--interface-definitions/interfaces-openvpn.xml.in2
-rw-r--r--interface-definitions/interfaces-wireguard.xml.in2
3 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/interfaces-bridge.xml.in b/interface-definitions/interfaces-bridge.xml.in
index a28daeba6..6e4531a7e 100644
--- a/interface-definitions/interfaces-bridge.xml.in
+++ b/interface-definitions/interfaces-bridge.xml.in
@@ -7,7 +7,7 @@
<help>Bridge interface name</help>
<priority>470</priority>
<constraint>
- <regex>^br[0-9]+$</regex>
+ <regex>br[0-9]+$</regex>
</constraint>
<constraintErrorMessage>Bridge interface must be named brN</constraintErrorMessage>
<valueHelp>
diff --git a/interface-definitions/interfaces-openvpn.xml.in b/interface-definitions/interfaces-openvpn.xml.in
index 638e9048b..88b26ebf7 100644
--- a/interface-definitions/interfaces-openvpn.xml.in
+++ b/interface-definitions/interfaces-openvpn.xml.in
@@ -7,7 +7,7 @@
<help>OpenVPN tunnel interface name</help>
<priority>460</priority>
<constraint>
- <regex>^vtun[0-9]+$</regex>
+ <regex>vtun[0-9]+$</regex>
</constraint>
<constraintErrorMessage>OpenVPN tunnel interface must be named vtunN</constraintErrorMessage>
<valueHelp>
diff --git a/interface-definitions/interfaces-wireguard.xml.in b/interface-definitions/interfaces-wireguard.xml.in
index 6be0292a1..706af7273 100644
--- a/interface-definitions/interfaces-wireguard.xml.in
+++ b/interface-definitions/interfaces-wireguard.xml.in
@@ -8,7 +8,7 @@
<priority>459</priority>
<!-- subsequent ones may be removed, just make sure ethernet ifs are present -->
<constraint>
- <regex>^wg[0-9]{1,4}</regex>
+ <regex>wg[0-9]{1,4}</regex>
</constraint>
<constraintErrorMessage>illegal interface name</constraintErrorMessage>
<valueHelp>