24 lines
444 B
Django/Jinja
24 lines
444 B
Django/Jinja
{% for subnet in radvd.subnets %}
|
|
interface {{ interfaces[subnet.name] }} {
|
|
AdvSendAdvert on;
|
|
AdvDefaultPreference high;
|
|
{% if subnet.no_gateway is defined and subnet.no_gateway %}
|
|
AdvDefaultLifetime 0;
|
|
{% endif %}
|
|
MaxRtrAdvInterval 30;
|
|
|
|
prefix {{ subnet.prefix }} {
|
|
AdvRouterAddr on;
|
|
};
|
|
|
|
# La zone DNS
|
|
DNSSL {{ subnet.dnssl }} {};
|
|
|
|
# Les DNS récursifs
|
|
{% for dns in subnet.dns %}
|
|
RDNSS {{ dns }} {};
|
|
{% endfor %}
|
|
};
|
|
|
|
{% endfor %}
|