All scripts
gitops
Advanced
scheduled
Config Drift-to-PR Reporter
Collect running configs, diff vs Git golden state, auto-create a PR with per-device diff, annotate with severity, assign to a team via CODEOWNERS and send a Slack notification.
Cisco
Juniper
Arista
You're viewing a preview
The full script, parameters, and execution console are available with a free account.
Already have access? Sign in →
Capabilities
- Running-config collection
- Diff vs Git golden
- Auto PR creation
- Per-device diff annotation
- Severity classification
- CODEOWNERS assignment
- Slack notify
Required inputs
Parameters the script accepts. Defaults shown; some are vendor- or context-gated.
| Parameter | Type | Default | Notes |
|---|---|---|---|
Golden repo path golden_repo | string | ./golden | — |
High-severity diff lines severity_lines | number | 20 | — |
Open PR on drift open_pr | bool | true | — |
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-12] INFO Collecting running configs from 47 devices... DEVICE DIFF-LINES SEVERITY STATUS core-rtr-01 0 - OK dist-sw-03 27 HIGH DRIFT ← edge-fw-02 4 LOW DRIFT ← Opened PR #511 'config drift 2026-06-12' · assigned @net-core Slack #netops notified Summary: 45 ok · 2 drift (1 high)