The graceful-restart command enables GR for the BGP speaker.
The undo graceful-restart command restores the default configuration.
By default, GR is disabled.
Usage Scenario
After the graceful-restart command is configured to enable GR for the switch, to prevent traffic interruption, another GR-capable device can assist the switch to perform GR when BGP on the switch restarts, and the switch can assist other GR-capable devices to perform GR when BGP on other devices restarts.
Follow-up Procedure
After running the graceful-restart command, run the graceful-restart timer wait-for-rib command to set the time for waiting for the End-Of-RIB flag.
Precautions
Enabling or disabling GR may delete and reestablish all BGP sessions and instances.
If the graceful-restart timer wait-for-rib command has been configured, using the undo graceful-restart command will delete the graceful-restart timer wait-for-rib command configuration.