summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/wireguard.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/interface-definitions/wireguard.xml b/interface-definitions/wireguard.xml
index 7dd1ec044..d7c3bc447 100644
--- a/interface-definitions/wireguard.xml
+++ b/interface-definitions/wireguard.xml
@@ -19,8 +19,11 @@
<leafNode name="address">
<properties>
<help>IP address</help>
+ <constraint>
+ <validator name="ip-host"/>
+ </constraint>
<valueHelp>
- <format>ipv4net</format>
+ <format>ipv4-address</format>
<description>IPv4 address and prefix length</description>
</valueHelp>
<valueHelp>
@@ -109,6 +112,9 @@
<leafNode name="allowed-ips">
<properties>
<help>IP addresses allowed to traverse the peer</help>
+ <constraint>
+ <validator name="ip-host"/>
+ </constraint>
<multi/>
</properties>
</leafNode>