summaryrefslogtreecommitdiff
path: root/interface-definitions/bcast-relay.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/bcast-relay.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/bcast-relay.xml')
-rw-r--r--interface-definitions/bcast-relay.xml16
1 files changed, 11 insertions, 5 deletions
diff --git a/interface-definitions/bcast-relay.xml b/interface-definitions/bcast-relay.xml
index e4a009ed4..19f29e340 100644
--- a/interface-definitions/bcast-relay.xml
+++ b/interface-definitions/bcast-relay.xml
@@ -14,11 +14,13 @@
<properties>
<help>Unique ID for each UDP port to forward</help>
<valueHelp>
- <format>u32:1-99</format>
+ <format>1-99</format>
<description>Numerical ID #</description>
</valueHelp>
- <type>u32</type>
<priority>990</priority>
+ <constraint>
+ <validator name="numeric" argument="--range 1-99"/>
+ </constraint>
</properties>
<children>
<leafNode name="address">
@@ -28,7 +30,9 @@
<format>ipv4</format>
<description>Optional source address for forwarded packets</description>
</valueHelp>
- <type>ipv4</type>
+ <constraint>
+ <validator name="ipv4"/>
+ </constraint>
</properties>
</leafNode>
<leafNode name="description">
@@ -49,10 +53,12 @@
<properties>
<help>Destination or source port to listen and retransmit on [REQUIRED]</help>
<valueHelp>
- <format>u32:1-65535</format>
+ <format>1-65535</format>
<description>UDP port to listen on</description>
</valueHelp>
- <type>u32</type>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
</properties>
</leafNode>
</children>