summaryrefslogtreecommitdiff
path: root/data/templates/mdns-repeater/avahi-daemon.conf.j2
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-09-24 23:22:31 -0500
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-09-28 16:23:15 +0000
commit39d30e2034d75823a958905aac7bc8427597fdac (patch)
tree5dd0141587e2715065ab24dfe401cadfc78ae1d4 /data/templates/mdns-repeater/avahi-daemon.conf.j2
parent8701282fbcb5972c874900105ec6c8ec0a2d4919 (diff)
downloadvyos-1x-39d30e2034d75823a958905aac7bc8427597fdac.tar.gz
vyos-1x-39d30e2034d75823a958905aac7bc8427597fdac.zip
mdns: T5615: Rename avahi-daemon config file
Rename avahi-daemon config file to avahi-daemon.conf.j2 to match the convention used by other config files. (cherry picked from commit 3a3123485f2ea7b253caa1c49f19c82a0eaa0b37)
Diffstat (limited to 'data/templates/mdns-repeater/avahi-daemon.conf.j2')
-rw-r--r--data/templates/mdns-repeater/avahi-daemon.conf.j227
1 files changed, 27 insertions, 0 deletions
diff --git a/data/templates/mdns-repeater/avahi-daemon.conf.j2 b/data/templates/mdns-repeater/avahi-daemon.conf.j2
new file mode 100644
index 000000000..d562c048f
--- /dev/null
+++ b/data/templates/mdns-repeater/avahi-daemon.conf.j2
@@ -0,0 +1,27 @@
+### Autogenerated by service_mdns-repeater.py ###
+[server]
+use-ipv4={{ 'yes' if ip_version in ['ipv4', 'both'] else 'no' }}
+use-ipv6={{ 'yes' if ip_version in ['ipv6', 'both'] else 'no' }}
+allow-interfaces={{ interface | join(', ') }}
+{% if browse_domain is vyos_defined and browse_domain | length %}
+browse-domains={{ browse_domain | join(', ') }}
+{% endif %}
+disallow-other-stacks=no
+
+[wide-area]
+enable-wide-area=yes
+
+[publish]
+disable-publishing=yes
+disable-user-service-publishing=yes
+publish-addresses=no
+publish-hinfo=no
+publish-workstation=no
+publish-aaaa-on-ipv4=no
+publish-a-on-ipv6=no
+
+[reflector]
+enable-reflector=yes
+{% if allow_service is vyos_defined and allow_service | length %}
+reflect-filters={{ allow_service | join(', ') }}
+{% endif %}