summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2018-08-23 11:55:58 -0700
committerhagbard <vyosdev@derith.de>2018-08-23 11:55:58 -0700
commit2e4e528d2527e4f74c0e62ba7478bb6053818082 (patch)
tree0a42d85352e9a4400839603aeddb0abca01b2e88
parentdc7bd3227dfea462d1ecd7d285972a61b267cfae (diff)
downloadvyos-1x-2e4e528d2527e4f74c0e62ba7478bb6053818082.tar.gz
vyos-1x-2e4e528d2527e4f74c0e62ba7478bb6053818082.zip
persitent-keepalive validator chnaged, checks now if it's between 1 and 65535
-rw-r--r--interface-definitions/wireguard.xml3
1 files changed, 1 insertions, 2 deletions
diff --git a/interface-definitions/wireguard.xml b/interface-definitions/wireguard.xml
index cd92aefe0..3b301fc3b 100644
--- a/interface-definitions/wireguard.xml
+++ b/interface-definitions/wireguard.xml
@@ -90,9 +90,8 @@
<properties>
<help>how often send keep alives in seconds</help>
<constraint>
- <regex>^(1|[1-9][0-9]{1,5})$</regex>
+ <validator name="numeric" argument="--range 1-65535"/>
</constraint>
- <constraintErrorMessage>keepliave timer has to be between 1 and 99999 seconds</constraintErrorMessage>
</properties>
</leafNode>
</children>