Skip to main content

confgraph

Network configs are text files. The dependencies between them are a graph. confgraph makes the blast radius visible and human error avoidable.

uvx confgraph map router.txt

confgraph default view

What it does

Point it at a config file. It parses every protocol, builds a dependency graph, and exports a self-contained interactive HTML file you can open in any browser.

uvx confgraph map router.txt --output-dir .
open router.html

Why this matters

Reducing Cognitive Load. Most engineers navigate configs with grep — find the prefix-list, grep for the route-map, grep for the BGP neighbor. That's a 5-step mental join query just to understand one dependency. confgraph replaces it with a single glance, so you can focus on logic rather than navigation.

Preventing Human Error. An engineer deletes an ACL that looks unused. Ten minutes later they realize it was the only thing protecting the management plane on a different VRF. In a graph, that ACL is visibly connected — you can see what you're about to break before you break it.

Ghost configuration. Large enterprise configs accumulate ghost objects: prefix-lists nobody calls, route-maps that reference non-existent ACLs. In a CLI they look like valid config. In a graph they appear as disconnected nodes — making confgraph a clean-up tool, not just a visualization tool.

High Blast Radius Dependency Mapping. When a shared policy object — an ACL used by both NAT and BGP, or a community list referenced across multiple neighbors — gets modified, the effects ripple unpredictably. confgraph surfaces these high blast radius objects so architects can trace the full directional flow before touching anything. The conversation shifts from "I think it affects these three neighbors" to "I can see it does."

Designed for troubleshooting

confgraph doesn't dump nodes on a screen — it clusters by protocol domain. Infrastructure, Routing, Policy, QoS, Security, and Management objects are grouped so the parts of the config that work together stay together visually.

Troubleshooting a BGP flap? The BGP cluster automatically pulls in related route-maps and prefix-lists, creating a logical island of the entire prefix path from neighbor to policy to filter.

Focused root cause analysis. Select any node to instantly isolate its direct dependencies. See exactly which interfaces are tied to a VRF, which policies are affecting a routing instance, or which ACLs a NAT rule depends on — without scrolling through thousands of lines of config.

Supported platforms

OS Parser
Cisco IOS / IOS-XE IOSParser
Cisco IOS-XR IOSXRParser
Cisco NX-OS NXOSParser
Arista EOS EOSParser
Juniper JunOS JunOSParser
Palo Alto PAN-OS PANOSParser

Try it instantly

Pre-generated maps for all supported platforms — open any in your browser, no install needed:

Platform Sample config Interactive map
Cisco IOS samples/ios.txt Live demo
Cisco IOS-XE samples/ios_xe.txt Live demo
Cisco IOS-XR samples/ios_xr.txt Live demo
Cisco NX-OS samples/nxos.txt Live demo
Arista EOS samples/eos.txt Live demo
Juniper JunOS samples/junos_test.cfg Live demo
Cisco IOS (full) samples/ios01.txt Live demo
Palo Alto PAN-OS samples/panos_sample.xml Live demo

Install

Requires pip:

pip install confgraph

Or run without installing via uv:

uvx confgraph map router.txt

Protocols parsed

BGP · OSPF · ACLs · NAT · Crypto/IPsec · VRF · IS-IS · EIGRP · RIP · Route-maps · Prefix-lists · Community lists · AS-path lists · Static routes · NTP · SNMP · Syslog · Banners · QoS · BFD · IP SLA · EEM · Object tracking · Multicast · Security zones (PAN-OS)

Use as a library

from confgraph.parsers.ios_parser import IOSParser

parsed = IOSParser(open("router.txt").read()).parse()
print(parsed.bgp_instances)
print(parsed.route_maps)

Security & Privacy

Local-first by design. confgraph never sends your config files anywhere. All parsing, graph generation, and analysis run entirely on your machine. The output is a single self-contained HTML file with no external requests — no CDN, no analytics, no telemetry. This means it can be safely moved to and used within air-gapped management jump-hosts where internet access is prohibited.

CLI Reference

See docs/CLI_USAGE.md for all commands, options, and examples.

Contributing

Contributions welcome — new parsers, bug fixes, additional protocol coverage. See docs/ARCHITECTURE.md to get started.

License

Apache 2.0

Metadata

Release files for confgraph 0.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for confgraph 0.3.8
File Size Uploaded Provenance Actions
confgraph-0.3.8.tar.gz 6.9 MB Without provenance Details for confgraph-0.3.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for confgraph 0.3.8
File Interpreter ABI Platform Actions
confgraph-0.3.8-py3-none-any.whl Python 3 none any Details for confgraph-0.3.8-py3-none-any.whl

Total release size: 7.5 MB

Release files / confgraph-0.3.8.tar.gz

Download URL confgraph-0.3.8.tar.gz
Size 6.9 MB
Tags Source
SHA-256 checksum
How to use checksums
1b19cb562f91dd0a42db46c6bd81118b6cebc13aee28a099033f5815091c1986
BLAKE2b-256 checksum
How to use checksums
ef8216f6aafe1220fed4f7ee43ff2a46cb8b67402b89f1b37ebc81ba9777e210
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / confgraph-0.3.8-py3-none-any.whl

Download URL confgraph-0.3.8-py3-none-any.whl
Size 647.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef041db26e51e90bd91381e5656bb2e1d4003ae540d4419151aa59231577ba50
BLAKE2b-256 checksum
How to use checksums
0161aa3d4599c3f14b21e90c0114fd6c6aefde08f28b231cd51f512337e327d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Security for confgraph 0.3.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page