Home / netdrift
€39netdrift
Someone changed the firewall at 02:00. Would you know by morning?
Network Config Backup & Drift Kit
Buy — €39 · coming soonone-time · Commercial single-team license (see LICENSE in the zip).
The problem
Switch, router and firewall configs change during incidents and rarely change back. Quarterly manual reviews find drift that has been live for a quarter. netdrift backs configs up to git only when something really changed, and compares the running state to an approved baseline, so a cron job or CI step can fail loudly on drift.
What it does
- Pulls running configs from Cisco IOS/IOS-XE, NX-OS, Juniper Junos and FortiGate FortiOS (via netmiko)
- Strips volatile lines (timestamps, checksums) and masks salted secrets (Junos
$9$, FortiOSENC) so only real changes show up - Commits to git only on real change; the commit message lists the changed devices
approvetags a baseline;driftdiffs against a tag, branch, commit, directory or file- Reports in text, JSON or standalone HTML; flags drifted, new and missing devices
- Exit codes: 0 clean, 2 drift, 1 error; one dead device does not stop the others
- Credentials come from environment variables only
What's in the box
src/netdriftPython packageexamples/: inventory and raw sample configs for an offline demosystemd/timer + service unitsansible/check-mode playbook (netdrift_check.yml)- README, LICENSE, CHANGELOG, Makefile
- The offline test suite (15 tests) lives in the repository and is not in the zip
Usage
export NETDRIFT_USER=backup NETDRIFT_PASS='...'
netdrift backup -i examples/inventory.yaml -r /var/lib/netdrift/repo
netdrift approve -r /var/lib/netdrift/repo # tag HEAD as 'approved'
netdrift drift -r /var/lib/netdrift/repo # exit 0 clean / 2 drift / 1 error
netdrift drift -r REPO --html-out drift.html --json-out drift.json
Offline demo: netdrift backup -i examples/inventory.yaml -r /tmp/demo --from-dir examples/raw
Requirements
- Python 3.9 or newer
- netmiko and PyYAML (installed by pip)
- SSH reachability and a read account on the devices
- git
Limitations / what it is not
- Read-only: it never pushes configuration to devices.
- Configs are stored in plain text in git. Protect the repository; secrets such as IOS type-7 hashes are kept as-is.
- The repository is local; add your own
git remoteand push. - Not a platform: no server, no database, no web UI.
FAQ
What is the license?
Commercial single-team license (see LICENSE in the zip).
Refunds?
14 days, no questions asked. See Legal.
How do I get support?
By email: [email protected].
Where it came from
Written up on the blog first:
- Detecting firewall rule drift before your auditor does
- Catching config drift with Ansible check mode before it catches you
- Idempotent network config backups: only commit what actually changed
Buy — €39 · coming soonone-time · Commercial single-team license (see LICENSE in the zip).
Tested Lab-tested
| Product version | 1.0.1 |
|---|---|
| Last run | 2026-11-24 |
| Result (install and tests) | PASS |
| Platforms | Debian 12; Debian 13; Ubuntu 24.04; Rocky Linux 9; Cisco IOS-XE (CSR1000v 17.3, Catalyst 8000V 17.11); Cisco NX-OS (Nexus 9000v 10.2.3) |
What was tested, and how
- Install the customer zip into clean containers, CLI smoke test, full test suite against the installed copy
How: pip install of the unzipped artifact in a fresh venv,netdrift --help, pytest - Live backup from virtual routers/switches; config stored in git
How:netdrift backupagainst running virtual IOS-XE and NX-OS nodes - Clean state gives exit 0; a real change (added NTP server) gives exit 2 and appears in the diff
How:approve,drift, change the device over SSH,backup,driftagain
Live device results (same run)
| Check | Result | Detail |
|---|---|---|
| lab-cisco (01/02/10 vs CSR1000v) | PASS | 8 PASS, 0 FAIL |
| live matrix: c8000v | PASS | 22 PASS, 0 FAIL |
| live matrix: nxos | PASS | 6 PASS, 0 FAIL |
Not tested
- Junos and FortiOS collection is covered by offline fixtures only (no virtual Junos/FortiGate in the lab)
Method and lab setup: How we test.