From ab5afad6a6946e544233aeb31e78b8a7285de8a5 Mon Sep 17 00:00:00 2001 From: Jipan Yang Date: Wed, 12 Jun 2019 22:51:27 -0700 Subject: [PATCH] [FRR]: enable bgp graceful-restart preserve-fw-state for FRR warm reboot support on T0 (#2998) Signed-off-by: Jipan Yang --- dockers/docker-fpm-frr/bgpd.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dockers/docker-fpm-frr/bgpd.conf.j2 b/dockers/docker-fpm-frr/bgpd.conf.j2 index aab7d01104..7ca08c7dac 100644 --- a/dockers/docker-fpm-frr/bgpd.conf.j2 +++ b/dockers/docker-fpm-frr/bgpd.conf.j2 @@ -29,6 +29,9 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }} no bgp default ipv4-unicast bgp graceful-restart restart-time 240 bgp graceful-restart +{% if DEVICE_METADATA['localhost']['type'] == 'ToRRouter' %} + bgp graceful-restart preserve-fw-state +{% endif %} {% for (name, prefix) in LOOPBACK_INTERFACE|pfx_filter %} {% if prefix | ipv4 and name == 'Loopback0' %} bgp router-id {{ prefix | ip }}