summaryrefslogtreecommitdiff
path: root/data/templates/frr/bgpd.frr.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-12 10:06:57 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-12 10:14:31 +0100
commit1d4c23ca9b62dfa6db6580440b21cd89c5d8f7e8 (patch)
tree4d3859d2e833fabfc78655a277a438734bf49dce /data/templates/frr/bgpd.frr.tmpl
parentee2c84b2f0cc13d71122bd2ee0640bb13aa8040e (diff)
downloadvyos-1x-1d4c23ca9b62dfa6db6580440b21cd89c5d8f7e8.tar.gz
vyos-1x-1d4c23ca9b62dfa6db6580440b21cd89c5d8f7e8.zip
bgp: T4069: add "parameters minimum-holdtime <n>" CLI option
This command allows user to prevent session establishment with BGP peers with lower holdtime less than configured minimum holdtime. When this command is not set, minimum holdtime does not work.
Diffstat (limited to 'data/templates/frr/bgpd.frr.tmpl')
-rw-r--r--data/templates/frr/bgpd.frr.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.tmpl b/data/templates/frr/bgpd.frr.tmpl
index 351e4a7ed..c04475070 100644
--- a/data/templates/frr/bgpd.frr.tmpl
+++ b/data/templates/frr/bgpd.frr.tmpl
@@ -522,6 +522,9 @@ router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none
{% if parameters.log_neighbor_changes is defined %}
bgp log-neighbor-changes
{% endif %}
+{% if parameters.minimum_holdtime is defined and parameters.minimum_holdtime is not none %}
+ bgp minimum-holdtime {{ parameters.minimum_holdtime }}
+{% endif %}
{% if parameters.network_import_check is defined %}
bgp network import-check
{% endif %}