summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-28 19:34:13 +0200
committerGitHub <noreply@github.com>2023-09-28 19:34:13 +0200
commitf6a87a32d61c0f9928824b2426da3c8510a4f111 (patch)
tree5dd0141587e2715065ab24dfe401cadfc78ae1d4 /interface-definitions
parent5fc286ae5262477ffd35c91044adfad0d6d59bd4 (diff)
parent39d30e2034d75823a958905aac7bc8427597fdac (diff)
downloadvyos-1x-f6a87a32d61c0f9928824b2426da3c8510a4f111.tar.gz
vyos-1x-f6a87a32d61c0f9928824b2426da3c8510a4f111.zip
Merge pull request #2321 from vyos/mergify/bp/sagitta/pr-2307vyos/1.4dev1
mdns: T5615: Allow controlling IP version to use for mDNS repeater (backport #2307)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/service-mdns-repeater.xml.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/interface-definitions/service-mdns-repeater.xml.in b/interface-definitions/service-mdns-repeater.xml.in
index 653dbbbe4..67870946c 100644
--- a/interface-definitions/service-mdns-repeater.xml.in
+++ b/interface-definitions/service-mdns-repeater.xml.in
@@ -15,6 +15,31 @@
<children>
#include <include/generic-disable-node.xml.i>
#include <include/generic-interface-multi.xml.i>
+ <leafNode name="ip-version">
+ <properties>
+ <help>IP address version to use</help>
+ <valueHelp>
+ <format>_ipv4</format>
+ <description>Use only IPv4 address</description>
+ </valueHelp>
+ <valueHelp>
+ <format>_ipv6</format>
+ <description>Use only IPv6 address</description>
+ </valueHelp>
+ <valueHelp>
+ <format>both</format>
+ <description>Use both IPv4 and IPv6 address</description>
+ </valueHelp>
+ <completionHelp>
+ <list>ipv4 ipv6 both</list>
+ </completionHelp>
+ <constraint>
+ <regex>(ipv[46]|both)</regex>
+ </constraint>
+ <constraintErrorMessage>IP Version must be literal 'ipv4', 'ipv6' or 'both'</constraintErrorMessage>
+ </properties>
+ <defaultValue>both</defaultValue>
+ </leafNode>
<leafNode name="browse-domain">
<properties>
<help>mDNS browsing domains in addition to the default one</help>