The graceful-restart command enables LDP GR.
The undo graceful-restart command disables LDP GR.
By default, LDP GR is disabled.
Usage Scenario
In LDP GR mode, when AMB/SMB switchover or protocol restart occurs on the neighboring device of the local device, the local device (GR helper) helps the device (restarter) to restart without interrupting packet forwarding.
If LDP GR is not enabled, during the AMB/SMB switchover or upgrade, the neighboring device deletes the LSP because the session is in the Down state. As a result, the traffic is interrupted in a short time. If LDP GR is enabled, the labels before and after unexpected AMB/SMB switchover or protocol restart can be consistent, and uninterrupted MPLS forwarding is ensured.
Prerequisites
MPLS LDP has been enabled globally using the mpls ldp(system view) command in the system view.
Precautions
Enabling or disabling GR causes the reestablishment of all LDP sessions.
LDP GR must be enabled on both the GR Restarter and Helper.