All scripts
isp
Advanced
3–8 min
T-ISP-034 · IRR Prefix-Filter Generator
Resolve an AS-SET via IRR data and render vendor-specific prefix-lists/route-policies for customer and peer sessions, with max-prefix limits and change-diff against the currently applied filter.
Cisco IOS-XR
Juniper Junos
Nokia SR OS
You're viewing a preview
The full script, parameters, and execution console are available with a free account.
Already have access? Sign in →
Capabilities
- AS-SET expansion
- Per-vendor filter rendering
- Max-prefix suggestion
- Change-diff vs running filter
- IPv4 + IPv6 output
- Dry-run preview
Required inputs
Parameters the script accepts. Defaults shown; some are vendor- or context-gated.
| Parameter | Type | Default | Notes |
|---|---|---|---|
AS-SET / origin AS as_set | string | AS-EXAMPLE | — |
Target vendor vendor | string | iosxr | — |
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 18:20:00 INFO Expanded AS-EXAMPLE -> 412 prefixes (ipv4) 2026-06-15 18:20:01 INFO Suggested max-prefix: 494 (412 * 1.2) 2026-06-15 18:20:01 INFO Diff vs running: +18 added, -3 removed 2026-06-15 18:20:01 INFO Filter written to filter-iosxr.txt