The peer capability-advertise graceful-restart command enables GR for a specified peer on a device. After this command is run, the device will advertise the GR capability to the specified peer.
The peer capability-advertise graceful-restart disable command disables GR for a specified peer on a device.
The undo peer capability-advertise graceful-restart command cancels GR enabling for a specified peer on a device.
The undo peer capability-advertise graceful-restart disable command cancels GR disabling for a specified peer on a device.
By default, GR is not enabled for a peer specified on a device.
Usage Scenario
If the graceful-restart command is run in the BGP view to enable GR globally on a device, all the device's peer relationships are disconnected, and the device has to renegotiate the GR capability with its peers. You are therefore advised to run the peer capability-advertise graceful-restart command instead to enable GR for a specified peer. After the command is run, the device advertises the GR capability to the specified peer. This ensures that the device does not delete the routes received from the specified peer and related forwarding entries before the GR time elapses, thereby preventing traffic interruption.
Configuration Impact
Enabling or disabling GR for a specified peer on a device causes the BGP peer relationship to be disconnected and then reestablished.
<HUAWEI> system-view [~HUAWEI] bgp 100 instance a [*HUAWEI-bgp-instance-a] peer 10.1.1.1 as-number 100 [*HUAWEI-bgp-instance-a] peer 10.1.1.1 capability-advertise graceful-restart