From 823bc36bd9018acd044b7e907d5823d482f8bf7e Mon Sep 17 00:00:00 2001 From: pavel-shirshov Date: Fri, 31 Mar 2017 13:25:39 -0700 Subject: [PATCH] Enable graceful restart feature for ToR router (#466) --- dockers/docker-fpm/bgpd.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dockers/docker-fpm/bgpd.conf.j2 b/dockers/docker-fpm/bgpd.conf.j2 index 5f4bb25e00..fff27678c9 100644 --- a/dockers/docker-fpm/bgpd.conf.j2 +++ b/dockers/docker-fpm/bgpd.conf.j2 @@ -22,6 +22,10 @@ log facility local4 router bgp {{ minigraph_bgp_asn }} bgp log-neighbor-changes bgp bestpath as-path multipath-relax +{# Advertise graceful restart capability for ToR #} +{% if minigraph_devices[inventory_hostname]['type'] == 'ToRRouter' %} + bgp graceful-restart +{% endif %} {# TODO: use lo[0] for backward compatibility, will revisit the case with multiple lo interfaces #} bgp router-id {{ minigraph_lo_interfaces[0]['addr'] }} {# advertise loopback #}