summaryrefslogtreecommitdiff
path: root/data/templates/router-advert
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/router-advert')
-rw-r--r--data/templates/router-advert/radvd.conf.tmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/templates/router-advert/radvd.conf.tmpl b/data/templates/router-advert/radvd.conf.tmpl
index 2fde78fec..9cc237512 100644
--- a/data/templates/router-advert/radvd.conf.tmpl
+++ b/data/templates/router-advert/radvd.conf.tmpl
@@ -30,6 +30,19 @@ interface {{ iface }} {
AdvOtherConfigFlag {{ 'on' if interface[iface].other_config_flag is defined else 'off' }};
AdvRetransTimer {{ interface[iface].retrans_timer }};
AdvCurHopLimit {{ interface[iface].hop_limit }};
+{% if interface[iface].route is defined %}
+{% for route in interface[iface].route %}
+ route {{ route }} {
+{% if interface[iface].route[route].valid_lifetime is defined %}
+ AdvRouteLifetime {{ interface[iface].route[route].valid_lifetime }};
+{% endif %}
+{% if interface[iface].route[route].route_preference is defined %}
+ AdvRoutePreference {{ interface[iface].route[route].route_preference }};
+{% endif %}
+ RemoveRoute {{ 'off' if interface[iface].route[route].no_remove_route is defined else 'on' }};
+ };
+{% endfor %}
+{% endif %}
{% for prefix in interface[iface].prefix %}
prefix {{ prefix }} {
AdvAutonomous {{ 'off' if interface[iface].prefix[prefix].no_autonomous_flag is defined else 'on' }};