Governed multi-vendor network device operations for AI agents (NAPALM) with a built-in governance harness (audit, budget, undo, risk tiers)
Project description
network-aiops (preview)
Disclaimer: This is a community-maintained open-source project and is not affiliated with, endorsed by, or sponsored by Cisco, Arista, Juniper, NetBox Labs, or any network vendor. Vendor and product names are trademarks of their respective owners. Source code is publicly auditable at github.com/AIops-tools/Network-AIops under the MIT license.
Governed multi-vendor network device operations for AI agents — 13 MCP tools,
every one wrapped with the bundled @governed_tool harness: a local unified audit
log under ~/.network-aiops/, policy engine, token/runaway budget guard,
undo-token recording, and graduated-autonomy risk tiers.
Devices are reached over NAPALM; an optional NetBox block adds source-of-truth lookups.
Standalone: the governance harness is bundled in the package (
network_aiops.governance) — network-aiops has no external skill-family dependency. Preview: common device operations, not yet exhaustive.
What works
Read device facts/interfaces/IP/BGP/LLDP/ARP, back up the running config, dry-run a config diff, and merge/replace/rollback config — across the five core NAPALM platforms below. Optional NetBox lookups confirm intended state before a change.
Supported devices
| Platform | NAPALM driver | Transport |
|---|---|---|
| Cisco IOS / IOS-XE | ios |
SSH |
| Cisco Nexus NX-OS | nxos (NX-API) / nxos_ssh (SSH) |
HTTPS / SSH |
| Cisco IOS-XR | iosxr |
SSH (XML agent) |
| Arista EOS | eos |
eAPI (HTTPS) |
| Juniper Junos | junos |
NETCONF (SSH) |
Additional platforms (Nokia SR OS / SR Linux, Huawei VRP, etc.) are reachable via NAPALM community drivers but are not officially tested here. Need one? See Contributing.
Supported actions
| Action | Tool | R/W | Risk |
|---|---|---|---|
| Device facts (hostname/vendor/model/OS/serial/uptime) | device_facts |
R | low |
| Interfaces (up/down, speed, description) | get_interfaces |
R | low |
| Interface IP addresses | get_interfaces_ip |
R | low |
| BGP neighbors | get_bgp_neighbors |
R | low |
| LLDP neighbors | get_lldp_neighbors |
R | low |
| ARP table | get_arp_table |
R | low |
| Back up running config | config_backup |
R | low |
| Diff a candidate (dry-run) | config_diff |
R | low |
| Merge config + commit | config_merge |
W | medium |
| Replace full config + commit | config_replace |
W | high |
| Roll back last commit | config_rollback |
W | medium |
| NetBox list devices | netbox_list_devices |
R | low |
| NetBox get device | netbox_get_device |
R | low |
Quick Start
uv tool install network-aiops
network-aiops doctor
network-aiops device facts -t core-sw1
network-aiops config backup -t core-sw1 -o core-sw1.cfg
Create ~/.network-aiops/config.yaml:
devices:
- name: core-sw1 # used as -t core-sw1
driver: eos # ios | nxos | nxos_ssh | iosxr | eos | junos
host: 10.0.0.1
username: admin
optional_args: # passed verbatim to NAPALM (optional)
secret: enable-pw # enable/secret
port: 443
# Optional source-of-truth:
netbox:
url: https://netbox.example.com
Put secrets in ~/.network-aiops/.env (chmod 600) — never in config.yaml:
NETWORK_CORE_SW1_PASSWORD=... # NETWORK_<TARGET_UPPER>_PASSWORD
NETWORK_NETBOX_TOKEN=...
MCP
{
"command": "network-aiops",
"args": ["mcp"],
"env": { "NETWORK_AIOPS_CONFIG": "~/.network-aiops/config.yaml" }
}
Audit & Safety
- Every tool call is logged to
~/.network-aiops/audit.db(local SQLite; relocate withNETWORK_AIOPS_HOME). config_merge/config_replacecapture the pre-change running config and record an inverseconfig_replace-to-backup undo descriptor.config_replaceisrisk_level=high; CLI destructive commands (config merge/replace/rollback) require double confirmation and support--dry-run(which prints the diff without committing).- All device text passes through
sanitize()(prompt-injection defense).
See skills/network-aiops/SKILL.md and SECURITY.md for details.
Companion Skills
| If you want… | Use |
|---|---|
| Network device config / facts (Cisco/Arista/Juniper) | network-aiops (this) |
| Kubernetes cluster operations | a cluster ops skill |
| Hypervisor VM lifecycle | a hypervisor ops skill |
Contributing & feature requests
This is a preview — coverage is intentionally focused. Need a device or action that isn't here yet? Open an issue or pull request at github.com/AIops-tools/Network-AIops — contributions, feature requests, and comments are all welcome.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file network_aiops-0.1.0.tar.gz.
File metadata
- Download URL: network_aiops-0.1.0.tar.gz
- Upload date:
- Size: 54.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a99beac522ce1ec051509572a8b8d6e09e21d29b79c9c1a276b3284be26f3b91
|
|
| MD5 |
3d3d5be9ed3717f24849778f8194b7d9
|
|
| BLAKE2b-256 |
f169c2d50081022205a2c65698299c0df6b26c03354adf6026a1b6ce317322ad
|
File details
Details for the file network_aiops-0.1.0-py3-none-any.whl.
File metadata
- Download URL: network_aiops-0.1.0-py3-none-any.whl
- Upload date:
- Size: 57.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfad18fb9eb45685d0f03715586aa571d6c1af51dc68450d7ee0f4505f3ba56d
|
|
| MD5 |
c3f636ef67737d34ebf60a72b4a6e15c
|
|
| BLAKE2b-256 |
31d5727596ebdd39cac91a4a837b0bd59cff882624ccdb1e57b9ed15011bed7d
|