summaryrefslogtreecommitdiff
path: root/data/templates/frr
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-02-19 15:04:40 +0000
committersever-sever <v.gletenko@vyos.io>2021-02-21 10:11:54 +0000
commitb5763e329915435b411e360243839cb7817ff055 (patch)
tree84ecf20ee1ae95982f09a56da482531b6897f748 /data/templates/frr
parent57f3fd3ae8acfa4aed980971e4263fdc2b1e061b (diff)
downloadvyos-1x-b5763e329915435b411e360243839cb7817ff055.tar.gz
vyos-1x-b5763e329915435b411e360243839cb7817ff055.zip
bgp: T3322: Fix timers for neighbor
Diffstat (limited to 'data/templates/frr')
-rw-r--r--data/templates/frr/bgp.frr.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl
index 4cb2ad092..6ba223196 100644
--- a/data/templates/frr/bgp.frr.tmpl
+++ b/data/templates/frr/bgp.frr.tmpl
@@ -58,6 +58,14 @@
{% if config.ttl_security is defined and config.ttl_security.hops is defined and config.ttl_security.hops is not none %}
neighbor {{ neighbor }} ttl-security hops {{ config.ttl_security.hops }}
{% endif %}
+{% if config.timers is defined %}
+{% if config.timers.connect is defined and config.timers.connect is not none %}
+ neighbor {{ neighbor }} timers connect {{ config.timers.connect }}
+{% endif %}
+{% if config.timers.holdtime is defined and config.timers.keepalive is defined and config.timers.holdtime is not none and config.timers.keepalive is not none %}
+ neighbor {{ neighbor }} timers {{ config.timers.keepalive }} {{ config.timers.holdtime }}
+{% endif %}
+{% endif %}
{% if config.update_source is defined and config.update_source is not none %}
neighbor {{ neighbor }} update-source {{ config.update_source }}
{% endif %}