All scripts
isp
Advanced
2–6 min
T-ISP-008 · BGP Graceful-Shutdown Automator
Drain traffic from a router or peer before maintenance using RFC 8326 GRACEFUL_SHUTDOWN community + local-pref lowering, verify traffic has moved, and provide a one-command rollback.
Cisco IOS-XR
Cisco IOS/XE
Juniper Junos
Arista EOS
You're viewing a preview
The full script, parameters, and execution console are available with a free account.
Already have access? Sign in →
Capabilities
- RFC 8326 GSHUT community
- Local-pref drain policy
- Pre/post traffic check
- Per-neighbor or device-wide
- Saved rollback bundle
- Confirmation gate
Required inputs
Parameters the script accepts. Defaults shown; some are vendor- or context-gated.
| Parameter | Type | Default | Notes |
|---|---|---|---|
Scope (device|neighbor) scope | string | neighbor | — |
Drain wait (s) drain_wait_s | number | 60 | — |
Sample inventory schema
Authoritative shape of the device/policy data this script consumes.
No bundled inventory sample. The script accepts standard device lists (CSV/YAML) with hostname, mgmt IP, vendor, and credentials.
Expected output
Reference terminal output the script should produce — used as a stylistic and structural target.
terminal
2026-06-15 16:45:00 INFO Applying GRACEFUL_SHUTDOWN to neighbor 198.51.100.7 2026-06-15 16:45:01 INFO Set local-pref 0 + community 65535:0 2026-06-15 16:46:01 INFO Egress on Gi0/0/1 dropped 94% — drained 2026-06-15 16:46:01 INFO Rollback saved to rollback-198.51.100.7.txt