# neighbor graceful-restart stalepaths-time

#### Syntax

neighbor { ipAddress | ipv6Address | peerGroupName } graceful-restart
stalepaths-time seconds

no neighbor { ipAddress | ipv6Address | peerGroupName } graceful-restart
stalepaths-time [ seconds ]

#### Release Information

Command introduced before JunosE Release 7.1.0.
ipv6Address variable added in JunosE Release 8.0.0.

#### Description

For a peer or peer group, sets the time period after a peer session restart during which BGP waits for an End-of-RIB marker from the 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

- ipAddress—IP address of BGP neighbor
- ipv6Address—IPv6 address of BGP neighbor
- peerGroupName—Name of a BGP peer group. If you specify a BGP peer group by using the peerGroupName argument, all the members of the peer group inherit the characteristic configured with this command, unless it is overridden for a specific peer.
- seconds—Integer in the range 1–3600; default value is 360 seconds

#### Mode

Address Family Configuration, Router Configuration