summaryrefslogtreecommitdiff
path: root/interface-definitions/ssh.xml
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-14 03:20:49 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-14 03:20:49 +0200
commit32b6793b210505a2a69dc6f7615ddd5f66ad74b8 (patch)
tree834075333c5aaa0c7fc8c3cc29041eb685f6bdfd /interface-definitions/ssh.xml
parent9a6320744d21416d1f1eb3a3ba168cf54ef59727 (diff)
downloadvyos-1x-32b6793b210505a2a69dc6f7615ddd5f66ad74b8.tar.gz
vyos-1x-32b6793b210505a2a69dc6f7615ddd5f66ad74b8.zip
T602: replace the now-gone type attribute with proper use of constraints in existing interface definitions.
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>