From 4a2c752303da9af69eaf1d4b95da8cfed797cfbd Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 30 Apr 2021 22:34:42 +0200 Subject: bgp: T3504: add support for per-peer graceful shutdown This commit has a dependecy on https://github.com/FRRouting/frr/issues/8403, thus support will be "commented out" by default. --- data/templates/frr/bgp.frr.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'data/templates') diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl index dafe45f59..2f67fa39e 100644 --- a/data/templates/frr/bgp.frr.tmpl +++ b/data/templates/frr/bgp.frr.tmpl @@ -35,6 +35,16 @@ {% if config.ebgp_multihop is defined and config.ebgp_multihop is not none %} neighbor {{ neighbor }} ebgp-multihop {{ config.ebgp_multihop }} {% endif %} +{% if config.graceful_restart is defined and config.graceful_restart is not none %} +{% if config.graceful_restart == 'enable' %} +{% set graceful_restart = 'graceful-restart' %} +{% elif config.graceful_restart == 'disable' %} +{% set graceful_restart = 'graceful-restart-disable' %} +{% elif config.graceful_restart == 'restart-helper' %} +{% set graceful_restart = 'graceful-restart-helper' %} +{% endif %} + neighbor {{ neighbor }} {{ graceful_restart }} +{% endif %} {% if config.local_as is defined and config.local_as is not none %} {% for local_asn in config.local_as %} neighbor {{ neighbor }} local-as {{ local_asn }} {{ 'no-prepend' if config.local_as[local_asn].no_prepend is defined }} -- cgit v1.2.3