Useful doc http://bgpfilterguide.nlnog.net/guides/graceful_shutdown/
[edit policy-options policy-statement BGP_community_actions] term preferred-transit { ... } + term graceful-shutdown { + from community GRACEFUL_SHUTDOWN; + then { + local-preference 0; + next policy; + } + } [edit policy-options] + community GRACEFUL_SHUTDOWN members 65535:0;