# bgp graceful-restart restart-time

#### Syntax

bgp graceful-restart restart-time seconds

no bgp graceful-restart restart-time [ seconds ]

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Sets the time period advertised to all peers during which a restart is expected to be complete on this BGP speaker. If the speaker does not reestablish peering sessions within this period, the peers flush all routes from this speaker that they marked as stale when the speaker restarted and the sessions went down. The no version restores the default value, 120 seconds.

#### Options

- seconds—Integer in the range 1–3600; default value is 120 seconds

#### Mode

Router Configuration