The set protocols bgp graceful-shutdown command enable graceful shutdown. To reduce packet loss during planned maintenance of a router or link, you can configure graceful BGP shutdown, which forces traffic to route around the BGP node.
The delete protocols bgp graceful-shutdown command disables graceful BGP shutdown.
set protocols bgp [vrf <vrf-name>] graceful-shutdown
delete protocols bgp [vrf <vrf-name>] graceful-shutdown
Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].
• This example enables graceful shutdown.