summaryrefslogtreecommitdiff
path: root/interface-definitions/service-mdns-repeater.xml.in
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-09-23 23:44:08 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-09-28 10:40:57 -0500
commite66f7075ee12ae3107d29efaf683442c3535e8b9 (patch)
tree1ea8a4c22b72cd63f214471d64daaeca58075ece /interface-definitions/service-mdns-repeater.xml.in
parent852e9c3328e61f5d0b92a9efca376aec94533f2b (diff)
downloadvyos-1x-e66f7075ee12ae3107d29efaf683442c3535e8b9.tar.gz
vyos-1x-e66f7075ee12ae3107d29efaf683442c3535e8b9.zip
mdns: T5615: Allow controlling IP version to use for mDNS repeater
This commit adds a new configuration option to the mDNS repeater service to allow controlling which IP version to use for mDNS repeater. Additionally, publishing AAAA record over IPv4 and A record over IPv6 is disabled as suggested. See: - https://github.com/lathiat/avahi/issues/117#issuecomment-1651475104 - https://bugzilla.redhat.com/show_bug.cgi?id=669627#c2
Diffstat (limited to 'interface-definitions/service-mdns-repeater.xml.in')
-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>