Page MenuHomePhabricator
Paste P94750

Drain CR traffic without 'graceful-shutdown' command
ActivePublic

Authored by cmooney on Jul 7 2026, 11:34 AM.
Project Tags
None
Referenced Files
F96124162: Drain CR traffic without 'graceful-shutdown' command
Jul 27 2026, 2:38 PM
F92262776: Drain CR traffic without 'graceful-shutdown' command
Jul 7 2026, 12:23 PM
F92262639: Drain CR traffic without 'graceful-shutdown' command
Jul 7 2026, 12:22 PM
F92261846: raw-paste-data.txt
Jul 7 2026, 12:17 PM
F92255788: raw-paste-data.txt
Jul 7 2026, 11:34 AM
Subscribers
None
# Drain active transport with OSPF Cost
# Pre-pend routes we announce to peering and transit
#* Also delete the 'export' policy for any specific peers completely:
#* show configuration protocols bgp | display set | match export | match neigh
# any that come back - delete protocols bgp group <group> neighbor <neighbor> export
delete protocols bgp group Transit4 export BGP_accept
delete protocols bgp group Transit6 export BGP_accept
delete protocols bgp group IX4 export BGP_accept
delete protocols bgp group IX6 export BGP_accept
delete protocols bgp group Private-Peer4 export BGP_accept
delete protocols bgp group Private-Peer6 export BGP_accept
set protocols bgp group Transit4 export BGP_wmf_prepend
set protocols bgp group Transit6 export BGP_wmf_prepend
set protocols bgp group IX4 export BGP_wmf_prepend
set protocols bgp group IX6 export BGP_wmf_prepend
set protocols bgp group Private-Peer4 export BGP_wmf_prepend
set protocols bgp group Private-Peer6 export BGP_wmf_prepend
# Pre-pend routes we announce to our Switches on site
set policy-options policy-statement Switch_out term direct then as-path-prepend "14907 14907 14907"
set policy-options policy-statement Switch_out term ospf then as-path-prepend "14907 14907 14907"
set policy-options policy-statement Switch_out term default4 then as-path-prepend "14907 14907 14907"
set policy-options policy-statement Switch_out term default6 then as-path-prepend "14907 14907 14907"
# Set local-pref to 0 and MED high for all routes we are learning:
#* Also delete any peer-specific import policies in affected groups
#* show configuration protocols bgp | display set | match import | match neigh
set policy-options policy-statement PREF0 then metric 10000
set policy-options policy-statement PREF0 then local-preference 0
set policy-options policy-statement PREF0 then accept
delete protocols bgp group Transit4 import
delete protocols bgp group Transit6 import
delete protocols bgp group IX4 import
delete protocols bgp group IX6 import
delete protocols bgp group Private-Peer4 import
delete protocols bgp group Private-Peer6 import
delete protocols bgp group Switch import
set protocols bgp group Transit4 import BGP_sanitize_in
set protocols bgp group Transit4 import PREF0
set protocols bgp group Transit6 import BGP_sanitize_in
set protocols bgp group Transit6 import PREF0
set protocols bgp group IX4 import BGP_sanitize_in
set protocols bgp group IX4 import PREF0
set protocols bgp group IX6 import BGP_sanitize_in
set protocols bgp group IX6 import PREF0
set protocols bgp group Private-Peer4 import BGP_sanitize_in
set protocols bgp group Private-Peer4 import PREF0
set protocols bgp group Private-Peer6 import BGP_sanitize_in
set protocols bgp group Private-Peer6 import PREF0
set protocols bgp group Switch import PREF0
# Change VRRP priority if appropriate
# show configuration | display set | match vrrp | match priority | except cost | match 110
# replace '110' with '50' and commit, check router is backup for all groups in "show vrrp summary"
# After 10-15 mins withdraw all routes to external peering / transit
delete protocols bgp group Transit4 export
delete protocols bgp group Transit6 export
delete protocols bgp group IX4 export
delete protocols bgp group IX6 export
delete protocols bgp group Private-Peer4 export
delete protocols bgp group Private-Peer6 export
set protocols bgp group Transit4 export NONE
set protocols bgp group Transit6 export NONE
set protocols bgp group IX4 export NONE
set protocols bgp group IX6 export NONE
set protocols bgp group Private-Peer4 export NONE
set protocols bgp group Private-Peer6 export NONE