summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorBrooks Swinnerton <bswinnerton@gmail.com>2018-11-07 20:53:07 -0500
committerBrooks Swinnerton <bswinnerton@gmail.com>2018-11-07 20:53:07 -0500
commit6da2d56d7d7d1235fd336a378addefdb98444c13 (patch)
treeca44d2c253d9c0fbac7af5d7808baeeab83f93cd /interface-definitions
parent3d3432b84dc7f8a588a94a981da089093507b9f3 (diff)
downloadvyos-1x-6da2d56d7d7d1235fd336a378addefdb98444c13.tar.gz
vyos-1x-6da2d56d7d7d1235fd336a378addefdb98444c13.zip
T979: Allow spaces in wireguard interface descrs
Previous to this commit, setting a Wireguard interface description would result in a validation error similar to the following: ``` brooks@border# set interfaces wireguard wg0 description "Tunnel" [edit] brooks@border# set interfaces wireguard wg0 description "Tunnel tunnel tunnel" interface description is too long (limit 100 characters) Value validation failed Set failed [edit] ``` This commit makes the regex less restrictive up to 100 characters.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/wireguard.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/wireguard.xml b/interface-definitions/wireguard.xml
index 3bf7bcd33..1ead24c0d 100644
--- a/interface-definitions/wireguard.xml
+++ b/interface-definitions/wireguard.xml
@@ -18,7 +18,7 @@
<children>
<leafNode name="address">
<properties>
- <help>IP address</help>
+ <help>IP address</help>
<valueHelp>
<format>ipv4net</format>
<description>IPv4 address and prefix length</description>
@@ -34,7 +34,7 @@
<properties>
<help>description</help>
<constraint>
- <regex>[^ ]{1,100}$</regex>
+ <regex>^.{1,100}$</regex>
</constraint>
<constraintErrorMessage>interface description is too long (limit 100 characters)</constraintErrorMessage>
</properties>
@@ -110,7 +110,7 @@
<properties>
<help>how often send keep alives in seconds</help>
<constraint>
- <validator name="numeric" argument="--range 1-65535"/>
+ <validator name="numeric" argument="--range 1-65535"/>
</constraint>
</properties>
</leafNode>