Graceful restart is disabled by default. You can globally enable graceful restart for all routing protocols at the
[edit routing-options]or[edit logical-routerslogical-router-namerouting-options]hierarchy levels.To configure graceful restart specifically for BGP, include the
graceful-restartstatement:graceful-restart {restart-time;stale-routes-time;}For a list of hierarchy levels at which you can configure this statements see the statement summary section for this statement.
NOTE: Configuring graceful restart for BGP resets the BGP peer routing statistics to zero.
To disable graceful restart for BGP, specify the
disablestatement. To configure a time period to complete restart, specify therestart-timestatement. To configure a time period over which to keep stale routes during a restart, specify thestale-routes-timestatement.