# bgp graceful-restart stalepaths-time

#### Syntax

bgp graceful-restart stalepaths-time seconds

no bgp graceful-restart stalepaths-time [ seconds ]

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Sets the time period after a peer session restart for all peers during which BGP waits for an End-of-RIB marker from a peer before flushing all stale routes from that peer. The period is measured from when the session is detected in a down state. The no version restores the default value, 360 seconds.

#### Options

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

#### Mode

Router Configuration