summaryrefslogtreecommitdiff
path: root/data/templates/mdns-repeater
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-11-23 18:36:33 +0100
committerGitHub <noreply@github.com>2024-11-23 19:36:33 +0200
commitec18cc393591052fd1f021c4a62220ab2e537a2e (patch)
treeb43d4df6fee4f8816adddefd447bf762a4472436 /data/templates/mdns-repeater
parentb91aaed8eb0953e0217ff37005bb8c47e2b05685 (diff)
downloadvyos-1x-ec18cc393591052fd1f021c4a62220ab2e537a2e.tar.gz
vyos-1x-ec18cc393591052fd1f021c4a62220ab2e537a2e.zip
avahi: T6908: add option to define max-cache entries (#4207)
* avahi: T6908: reduce runtime overhead in smoketests by using setUpClass/tearDownClass * avahi: T6908: add option to define mdns-repeater max-cache entries Add CLI option to configure `cache-entries-max` entries in Avahi daemon configuration. Default value of 4096 for "cache-entries" CVLI node was retrieved from source code.
Diffstat (limited to 'data/templates/mdns-repeater')
-rw-r--r--data/templates/mdns-repeater/avahi-daemon.conf.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/mdns-repeater/avahi-daemon.conf.j2 b/data/templates/mdns-repeater/avahi-daemon.conf.j2
index cc6495817..a5031945c 100644
--- a/data/templates/mdns-repeater/avahi-daemon.conf.j2
+++ b/data/templates/mdns-repeater/avahi-daemon.conf.j2
@@ -6,6 +6,9 @@ allow-interfaces={{ interface | join(', ') }}
{% if browse_domain is vyos_defined and browse_domain | length %}
browse-domains={{ browse_domain | join(', ') }}
{% endif %}
+{% if cache_entries is vyos_defined %}
+cache-entries-max={{ cache_entries }}
+{% endif %}
disallow-other-stacks=no
[wide-area]