Role service-radvd: make more parameters configurable

This commit is contained in:
Tobias Hachmer 2017-10-03 21:24:36 +02:00
parent a1705da9a0
commit 07a0b25a09
2 changed files with 11 additions and 3 deletions

View file

@ -36,6 +36,10 @@ meshes:
mm: 0
dat: 0
hop_penalty: 60
radvd:
maxrtradvinterval: 900
advvalidlifetime: 864000
advpreferredlifetime: 172800
iface_mtu: 1350
peers_mesh_repo: https://github.com/freifunk-mwu/peers-ffmz.git
peers_intragate_repo: https://github.com/freifunk-mwu/ffmz-infrastructure-peers.git
@ -68,6 +72,10 @@ meshes:
mm: 0
dat: 0
hop_penalty: 60
radvd:
maxrtradvinterval: 900
advvalidlifetime: 864000
advpreferredlifetime: 172800
iface_mtu: 1350
peers_mesh_repo: https://github.com/freifunk-mwu/peers-ffwi.git
peers_intragate_repo: https://github.com/freifunk-mwu/ffwi-infrastructure-peers.git

View file

@ -7,7 +7,7 @@ interface {{ mesh_id }}BR
{
AdvSendAdvert on;
IgnoreIfMissing on;
MaxRtrAdvInterval 900;
MaxRtrAdvInterval {{ mesh_value.radvd.maxrtradvinterval }};
AdvLinkMTU {{ mesh_value.iface_mtu }};
{% for ip_type, ip_list in mesh_value.ipv6.iteritems() %}
@ -29,8 +29,8 @@ interface {{ mesh_id }}BR
prefix {{ prefix | ipaddr('net') | ipsubnet(64, 0) | ipaddr('subnet') }}
{% endif %}
{
AdvValidLifetime 864000;
AdvPreferredLifetime 172800;
AdvValidLifetime {{ mesh_value.radvd.advvalidlifetime }};
AdvPreferredLifetime {{ mesh_value.radvd.advpreferredlifetime }};
};
{% endfor %}
{% if not loop.last %}