Thought about it for T211715
This is to be able to smoothly drain traffic before disabling the BGP session/interface to a providers that support BGP graceful shutdown (eg. NTT, Telia, Tele2).
To be pushed to all routers:
[edit policy-options] + policy-statement BGP_graceful_shutdown_out { + then { + community add GRACEFUL_SHUTDOWN; + next policy; + } + }
And then to specific peers (v4 or v6), when the need arises:
[edit protocols bgp group Transit4 neighbor 80.239.192.65]
+ export [ BGP_graceful_shutdown_out BGP_outfilter ];
The 2nd policy, (Eg. BGP_outfilter) needs to be adapted to match the export policy of the current peer or its parent group.