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
Open in GeneratorOpen in Platform
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.

ParameterTypeDefaultNotes
Golden repo path
golden_repo
string./golden
High-severity diff lines
severity_lines
number20
Open PR on drift
open_pr
booltrue

Hint 1Name your vendors and OS versions

Mention the exact platforms you run (Cisco, Juniper, Arista) so the generated gitops logic uses the right CLI/NETCONF syntax.

Hint 2State your real thresholds

Provide concrete values for Golden repo path, High-severity diff lines, Open PR on drift instead of the defaults — they shape what counts as a fault.

Hint 3Prioritize the checks you need

This tool can running-config collection and diff vs Git golden. Ask for the subset relevant to your incident to keep output focused.

Hint 4Describe your inventory format

Tell the assistant whether your device list is CSV, YAML, or JSON and which columns it has, so parsing matches your data.

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)