diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-05 22:32:25 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-05 22:32:25 +0200 |
commit | 3ea3c8ed6bd49f4a62df2faeda598160f0d2f413 (patch) | |
tree | 4628fc1fd12baecbd2c3b2f44d7ccebcd61bbb42 /data/templates | |
parent | 5171e61d9b30b75945e12dbefa3bd57d2e169cc7 (diff) | |
download | vyos-1x-3ea3c8ed6bd49f4a62df2faeda598160f0d2f413.tar.gz vyos-1x-3ea3c8ed6bd49f4a62df2faeda598160f0d2f413.zip |
router-advert: T2230: move inlined templates to dedicated files
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/router-advert/radvd.conf.tmpl | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/data/templates/router-advert/radvd.conf.tmpl b/data/templates/router-advert/radvd.conf.tmpl new file mode 100644 index 000000000..2768f6f2e --- /dev/null +++ b/data/templates/router-advert/radvd.conf.tmpl @@ -0,0 +1,37 @@ +### Autogenerated by service-router-advert.py ### + +{% for i in interfaces -%} +interface {{ i.name }} { + IgnoreIfMissing on; + AdvDefaultPreference {{ i.default_preference }}; + AdvManagedFlag {{ i.managed_flag }}; + MaxRtrAdvInterval {{ i.interval_max }}; +{% if i.interval_min %} + MinRtrAdvInterval {{ i.interval_min }}; +{% endif %} + AdvReachableTime {{ i.reachable_time }}; + AdvIntervalOpt {{ i.send_advert }}; + AdvSendAdvert {{ i.send_advert }}; +{% if i.default_lifetime %} + AdvDefaultLifetime {{ i.default_lifetime }}; +{% endif %} +{% if i.link_mtu %} + AdvLinkMTU {{ i.link_mtu }}; +{% endif %} + AdvOtherConfigFlag {{ i.other_config_flag }}; + AdvRetransTimer {{ i.retrans_timer }}; + AdvCurHopLimit {{ i.hop_limit }}; +{% for p in i.prefixes %} + prefix {{ p.prefix }} { + AdvAutonomous {{ p.autonomous_flag }}; + AdvValidLifetime {{ p.valid_lifetime }}; + AdvOnLink {{ p.on_link }}; + AdvPreferredLifetime {{ p.preferred_lifetime }}; + }; +{% endfor %} +{% if i.name_server %} + RDNSS {{ i.name_server | join(" ") }} { + }; +{% endif %} +}; +{% endfor -%} |