All scripts
isp
Advanced
2–6 min
T-ISP-007 · AS-Path Prepend Optimizer
Compute the minimal AS-path prepend count needed to shift inbound traffic away from an over-utilized transit by sampling looking-glass visibility, then render the route-policy change.
Cisco IOS-XR
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
- Looking-glass visibility sampling
- Minimal prepend search
- Per-transit balance targets
- Over-prepend guardrails
- Route-policy rendering
- Before/after estimate
Required inputs
Parameters the script accepts. Defaults shown; some are vendor- or context-gated.
| Parameter | Type | Default | Notes |
|---|---|---|---|
Target inbound share % target_pct | number | 40 | — |
Max prepend count max_prepend | number | 4 | — |
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 15:30:02 INFO Current share via TRANSIT-A: 68% 2026-06-15 15:30:03 INFO Prepend 2x → estimated share 39% (target 40%) 2026-06-15 15:30:03 INFO Rendered route-policy PREPEND-A (prepend 65010 65010)