diff options
author | Mark Royds <github@mnr.cc> | 2021-05-23 11:20:56 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-24 10:45:42 +0200 |
commit | 856800bf75d408700d704921ffd592f6c99f84be (patch) | |
tree | a3cc078d386fbe76f85d5ffc1157118fe8456284 /data | |
parent | 8ff36fa268f852acde5f2cb29bbeca31bf5212c4 (diff) | |
download | vyos-1x-856800bf75d408700d704921ffd592f6c99f84be.tar.gz vyos-1x-856800bf75d408700d704921ffd592f6c99f84be.zip |
router-advert: T3561: add support for specific routes
Co-authored-by: Mark Royds <mark.royds@vitaminit.co.uk>
(cherry picked from commit c17f259d09abd2bf632d09400fe8deb4c2781d32)
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/router-advert/radvd.conf.tmpl | 13 |
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' }}; |