The peer graceful-restart static-timer command sets the maximum time for the local end to wait for GR recovery of the peer.
The undo peer graceful-restart static-timer command deletes the configured maximum duration.
By default, the maximum time for the local end to wait for GR recovery of the peer is 0, in seconds.
Usage Scenario
Even if you run the graceful-restart timer restart time command in the BGP view, the maximum wait time can be changed to 3600s at most. If some BGP sessions take more than 3600s to re-establish due to poor network conditions, you can run the peer graceful-restart static-timer command to set a proper wait time for a specified peer.
Configuration Impact
If the graceful-restart timer restart command is run in the BGP view and the peer graceful-restart static-timer command is run in any of its views, the latter command takes precedence over the former command.
Precautions
GR has been enabled using the graceful-restart command.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 200 [*HUAWEI-bgp] ipv4-family sr-policy [*HUAWEI-bgp-af-ipv4-srpolicy] peer 10.1.1.1 enable [*HUAWEI-bgp-af-ipv4-srpolicy] peer 10.1.1.1 graceful-restart static-timer 4000