summaryrefslogtreecommitdiff
path: root/interface-definitions/ssh.xml
diff options
context:
space:
mode:
Diffstat (limited to 'interface-definitions/ssh.xml')
-rw-r--r--interface-definitions/ssh.xml11
1 files changed, 8 insertions, 3 deletions
diff --git a/interface-definitions/ssh.xml b/interface-definitions/ssh.xml
index 5ccd3006f..f898f3934 100644
--- a/interface-definitions/ssh.xml
+++ b/interface-definitions/ssh.xml
@@ -80,8 +80,11 @@
<format>ipv6</format>
<description>IPv6 address to listen for incoming connections</description>
</valueHelp>
- <type>ipv4,ipv6</type>
<multi/>
+ <constraint>
+ <validator name="ipv4-address"/>
+ <validator name="ipv6-address"/>
+ </constraint>
</properties>
</leafNode>
<leafNode name="loglevel">
@@ -121,10 +124,12 @@
<properties>
<help>Port for SSH service</help>
<valueHelp>
- <format>u32:1-65535</format>
+ <format>1-65535</format>
<description>Numeric IP port</description>
</valueHelp>
- <type>u32</type>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
</properties>
</leafNode>
</children>