diff options
author | Mark Royds <github@mnr.cc> | 2021-05-23 11:20:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 12:20:56 +0200 |
commit | c17f259d09abd2bf632d09400fe8deb4c2781d32 (patch) | |
tree | 7c612f93696b2947c839aab31e66b35790660f3f /data | |
parent | ed817477dd418f4b448910e990f38a9a3de5ee73 (diff) | |
download | vyos-1x-c17f259d09abd2bf632d09400fe8deb4c2781d32.tar.gz vyos-1x-c17f259d09abd2bf632d09400fe8deb4c2781d32.zip |
router-advert: T3561: add support for specific routes
Co-authored-by: Mark Royds <mark.royds@vitaminit.co.uk>
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' }}; |