Skip to content

Commit

Permalink
dnsmasq - Enable Router Advertisements if v6 range
Browse files Browse the repository at this point in the history
Add a check in a networks 'ranges' - if 'start_v6' is defined
in any range add 'enable-ra' to the dnsmasq config.
  • Loading branch information
hjensas committed Jun 5, 2024
1 parent c3650ee commit 8215b84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/dnsmasq/templates/network.conf.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Managed by ci-framework/dnsmasq
{% if cifmw_dnsmasq_network_definition['ranges'] | selectattr('start_v6', 'defined') -%}
enable-ra
{% endif %}

{% for range in cifmw_dnsmasq_network_definition['ranges'] -%}
{% if range.start_v4 is defined and range.start_v4 | length > 0 -%}
Expand Down

0 comments on commit 8215b84

Please sign in to comment.