summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-21 11:19:37 +0100
committerGitHub <noreply@github.com>2021-02-21 11:19:37 +0100
commit50b2882c663a1c308e9f71f6d0d52109a0170afd (patch)
tree338cee3cd1aca7fc95f7f6c9ee67ed83060765eb /data
parent3c64c79d7977869da3ca4dc70eb97ff9c6682e52 (diff)
parentb5763e329915435b411e360243839cb7817ff055 (diff)
downloadvyos-1x-50b2882c663a1c308e9f71f6d0d52109a0170afd.tar.gz
vyos-1x-50b2882c663a1c308e9f71f6d0d52109a0170afd.zip
Merge pull request #737 from sever-sever/T3332
bgp: T3322: Fix timers for neighbor
Diffstat (limited to 'data')
-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 08b6cb791..30741aa27 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 %}