graceful-restart (OSPF view)

Use graceful-restart to enable OSPF GR.

Use undo graceful-restart to disable OSPF GR.

Syntax

graceful-restart [ ietf | nonstandard ] [ global | planned-only ] *

undo graceful-restart

Default

OSPF GR is disabled.

Views

OSPF view

Predefined user roles

network-admin

Parameters

ietf: Enables IETF GR.

nonstandard: Enables non-IETF GR.

global: Enables global GR. In global GR mode, a GR process can be completed only when all GR helpers exist. A GR process fails if a GR helper fails (for example, the interface connected to the GR helper goes down). If you do not specify this keyword, the command enables partial GR. In partial GR mode, a GR process can be completed if a GR helper exists.

planned-only: Enables only planned GR. If you do not specify this keyword, the command enables both planned GR and unplanned GR.

Usage guidelines

GR includes planned GR and unplanned GR.

Before enabling IETF GR for OSPF, enable Opaque LSA advertisement and reception with the opaque-capability enable command.

Before enabling non-IETF GR for OSPF, enable OSPF LLS with the enable link-local-signaling command and OOB-Resynch with the enable out-of-band-resynchronization command.

If you do not specify the nonstandard or ietf keyword, this command enables non-IETF GR for OSPF.

OSPF GR and OSPF NSR are mutually exclusive. Do not configure the graceful-restart command and the non-stop-routing command at the same time.

Examples

# Enable IETF GR for OSPF process 1.

<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] opaque-capability enable
[Sysname-ospf-1] graceful-restart ietf

# Enable non-IETF GR for OSPF process 1.

<Sysname> system-view
[Sysname] ospf 1
[Sysname-ospf-1] enable link-local-signaling
[Sysname-ospf-1] enable out-of-band-resynchronization
[Sysname-ospf-1] graceful-restart nonstandard

Related commands

enable link-local-signaling

enable out-of-band-resynchronization

opaque-capability enable