Skip to content
Snippets Groups Projects
Commit 79495468 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

`bgp_group.j2`: add support for prefix-limit and graceful-restart

parent 25428fe0
No related branches found
No related tags found
1 merge request!285Feature/lhcone6 groups
...@@ -88,5 +88,22 @@ ...@@ -88,5 +88,22 @@
{% endfor %} {% endfor %}
</export> </export>
{% endif %} {% endif %}
{% if group.graceful_restart is defined %}
<graceful-restart>
<restart-time>{{ group.graceful_restart.restart_time }}</restart-time>
<stale-routes-time>{{ group.graceful_restart.stale_routes_time }}</stale-routes-time>
<gr-notification>{{ group.graceful_restart.gr_notification }}</gr-notification>
</graceful-restart>
{% endif %}
{% if group.prefix_limit is defined %}
{% for pl in group.prefix_limit %}
<prefix-limit>
<family>{{ pl.family }}</family>
<maximum>{{ pl.maximum }}</maximum>
<threshold>{{ pl.threshold }}</threshold>
<idle-timeout>{{ pl.idle_timeout }}</idle-timeout>
</prefix-limit>
{% endfor %}
{% endif %}
</group> </group>
{% endfor %} {% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment