summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-01 20:32:04 +0100
committerChristian Breunig <christian@breunig.cc>2024-02-01 20:32:04 +0100
commit049560725b93de49ec2d5a779e391e61d568ceb6 (patch)
tree160ca83484c6d2091408fb50aa67083ead150bbe /interface-definitions
parentc4b6c156549ea03262793c78532c2456e8713b81 (diff)
downloadvyos-1x-049560725b93de49ec2d5a779e391e61d568ceb6.tar.gz
vyos-1x-049560725b93de49ec2d5a779e391e61d568ceb6.zip
dns forwarding: T5687: add missing constraints on ecs-add-for CLI node
Completion help suggests only IPv4 and IPv6 prefixes are supported, thus add a proper constraint enforcing this.
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/service_dns_forwarding.xml.in18
1 files changed, 16 insertions, 2 deletions
diff --git a/interface-definitions/service_dns_forwarding.xml.in b/interface-definitions/service_dns_forwarding.xml.in
index 788f0c18e..a54618e82 100644
--- a/interface-definitions/service_dns_forwarding.xml.in
+++ b/interface-definitions/service_dns_forwarding.xml.in
@@ -745,12 +745,26 @@
<help>Client netmask for which EDNS Client Subnet will be added</help>
<valueHelp>
<format>ipv4net</format>
- <description>IP addresses or subnets, negation supported</description>
+ <description>IPv4 prefix to match</description>
+ </valueHelp>
+ <valueHelp>
+ <format>!ipv4net</format>
+ <description>Match everything except the specified IPv4 prefix</description>
</valueHelp>
<valueHelp>
<format>ipv6net</format>
- <description>IPv6 addresses or subnets, negation supported</description>
+ <description>IPv6 prefix to match</description>
+ </valueHelp>
+ <valueHelp>
+ <format>!ipv6net</format>
+ <description>Match everything except the specified IPv6 prefix</description>
</valueHelp>
+ <constraint>
+ <validator name="ipv4-prefix"/>
+ <validator name="ipv4-prefix-exclude"/>
+ <validator name="ipv6-prefix"/>
+ <validator name="ipv6-prefix-exclude"/>
+ </constraint>
<multi/>
</properties>
</leafNode>