A NetBox plugin that synchronizes Palo Alto Networks Panorama configuration from NetBox data using a pull, diff and push workflow.
Project description
NetBox Panorama ConfigPump Plugin
A NetBox plugin that synchronizes Palo Alto Networks Panorama configuration from NetBox data using a pull → diff → push workflow.
Overview
This plugin enables you to declare Panorama configuration in NetBox, render it from NetBox objects using Configuration Templates in Panorama XML format, preview the diff, and stage changes to Panorama.
- Configuration synchronization: Keeps Panorama Templates and Device Groups in sync.
- Declarative updates: Full-template and device-group overwrites in a single, deterministic operation (not incremental diffs of individual fields).
- Inline diff UI: Uses Monaco Editor to display XML diffs before you push.
- Background jobs: All long-running sync operations are executed asynchronously.
Concepts
- Config Template: Jinja + XML template that renders device-specific Panorama XML using NetBox data. See: examples/v11.1.6/template_example.xml.j2
- Connection Template: Defines how to connect to a Panorama instance (host, token reference, defaults).
- Connection: Binds devices to a specific Panorama instance and orchestrates pull/diff/push for those devices.
Quickstart
- Create firewall
Deviceobjects in NetBox. - Create a Config Template (Jinja + XML) that renders Panorama XML from your NetBox data.
- Create a Connection Template for your Panorama instance (host + token key).
- Create a Connection, assign devices, then open it to view the generated XML and diff.
- Pull candidate config from Panorama to refresh the diff.
- Push to stage changes in Panorama (then commit in Panorama to apply).
Refer to EXAMPLES.md for screenshots of each step.
[!CAUTION] When you push configuration from NetBox using Panorama ConfigPump, any Panorama templates and device groups defined in the rendered config for a device are completely overwritten in Panorama. In other words, ConfigPump takes full ownership of those specific templates and device groups. Any manual changes made directly in Panorama to them will be lost on the next push.
To avoid losing manual configurations, keep any manually managed settings in separate templates and device groups that are not managed by ConfigPump. You can combine both manual and NetBox-managed configurations by using Panorama’s Template Stacks and Device Group Hierarchy features.
Compatibility
Tested combinations:
| Plugin Version | NetBox Versions | Panorama versions |
|---|---|---|
| 1.1.0 | 4.2.5 - 4.3.7 | 10.2.10, 11.1.6 |
Installation
-
Install the plugin in the NetBox environment:
pip install netbox-panorama-configpump-plugin
-
Enable the plugin in NetBox
configuration.py:PLUGINS = [ "netbox_panorama_configpump_plugin", ] PLUGINS_CONFIG = { "netbox_panorama_configpump_plugin": { # minimal example — see CONFIGURATION.md for all options "default_request_timeout": 60, "default_filename_prefix": "netbox-panorama", # Store tokens in env vars or your secrets manager "tokens": { "PANO1_TOKEN": os.environ.get("PANO1_TOKEN"), }, "top_level_menu": True, } }
-
Restart NetBox (and workers) to load the plugin.
For detailed configuration options, see CONFIGURATION.md.
Development
See CONTRIBUTING.md for local setup, make commands, testing, and debugging.
Known limitations
- Monaco Editor assets are currently loaded from a CDN. If the NetBox UI cannot reach the Internet, the diff view will not load. Bundling the assets locally may be added later.
Security notes
- Do not store Panorama authentication tokens directly in
configuration.py. Load them from environment variables or a secret manager and pass them viaPLUGINS_CONFIG["netbox_panorama_configpump_plugin"]["tokens"].
License
This project is licensed under the Apache License Version 2.0 — see the LICENSE file for details.
Third-Party Licenses
This project uses the Monaco Editor, licensed under the MIT License. Monaco Editor © Microsoft Corporation: https://github.com/microsoft/monaco-editor
Support
- Repository: GitHub
- Issues: GitHub Issues
- Author: rautanen.io
If you need assistance creating custom connection templates, feel free to contact us.
Changelog
See the Releases page for version history and changes.
Sponsorship
If you find this plugin useful and want to sponsor ongoing development or integrate NetBox‑driven configuration for switches and routers, please contact us. We also provide ConfigPumps for Cisco and Arista switches and routers.
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 netbox_panorama_configpump_plugin-1.0.0.tar.gz.
File metadata
- Download URL: netbox_panorama_configpump_plugin-1.0.0.tar.gz
- Upload date:
- Size: 35.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d16dd0d026234bcd9ec443159d10f16717e0727f98ad48d8fe03541e88bf3ba9
|
|
| MD5 |
3a943611d56f6d99d120f31325df7ddf
|
|
| BLAKE2b-256 |
451c6be3404fc7e637a44ee79331948991bf4b9a1a15e84989a198cc12f46c24
|
File details
Details for the file netbox_panorama_configpump_plugin-1.0.0-py3-none-any.whl.
File metadata
- Download URL: netbox_panorama_configpump_plugin-1.0.0-py3-none-any.whl
- Upload date:
- Size: 54.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a32e07116d3d19a1b9577be56f53065376d14e2ce0bfa885393585a46c2fdc00
|
|
| MD5 |
764614ebff40a0111d41d53e09df1432
|
|
| BLAKE2b-256 |
54b637c99ee99cdb9706d3a036807c54e6b4b7e193cb89a39c4363af8fa69f12
|