diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-05-14 03:20:49 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-05-14 03:20:49 +0200 |
commit | 32b6793b210505a2a69dc6f7615ddd5f66ad74b8 (patch) | |
tree | 834075333c5aaa0c7fc8c3cc29041eb685f6bdfd /interface-definitions/dns-forwarding.xml | |
parent | 9a6320744d21416d1f1eb3a3ba168cf54ef59727 (diff) | |
download | vyos-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/dns-forwarding.xml')
-rw-r--r-- | interface-definitions/dns-forwarding.xml | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/interface-definitions/dns-forwarding.xml b/interface-definitions/dns-forwarding.xml index bdb5ddc46..81aa6063d 100644 --- a/interface-definitions/dns-forwarding.xml +++ b/interface-definitions/dns-forwarding.xml @@ -17,10 +17,12 @@ <properties> <help>DNS forwarding cache size</help> <valueHelp> - <format>u32:0-10000</format> + <format>0-10000</format> <description>DNS forwarding cache size</description> </valueHelp> - <type>u32</type> + <constraint> + <validator name="numeric" argument="--range 0-10000"/> + </constraint> </properties> </leafNode> <leafNode name="dhcp"> @@ -49,7 +51,10 @@ <description>Domain Name Server (DNS) IPv6 address</description> </valueHelp> <multi/> - <type>ipv4,ipv6</type> + <constraint> + <validator name="ipv4-address"/> + <validator name="ipv6-address"/> + </constraint> </properties> </leafNode> </children> @@ -80,7 +85,10 @@ <description>Domain Name Server (DNS) IPv6 address</description> </valueHelp> <multi/> - <type>ipv4,ipv6</type> + <constraint> + <validator name="ipv4-address"/> + <validator name="ipv6-address"/> + </constraint> </properties> </leafNode> <leafNode name="system"> |