NetBox Panorama ConfigPump Plugin
A NetBox plugin that synchronizes configurations from NetBox to Palo Alto Networks Panorama with 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 by default (you can optionally specify more precise XPaths to replace).
- Inline diff UI: Uses Monaco Editor to display XML diffs before you push.
- Background jobs: All long-running sync operations are executed asynchronously.
- Flexible updates: Easily overwrite Panorama Templates and Device Groups, or target arbitrary XML-API paths using XPath expressions defined per firewall device.
- Automatic commit: Push now acquires config and commit locks, uploads the rendered XML, loads defined XPath targets, commits, polls the job, and exports the resulting config.
Introduction video
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 upload and commit changes in Panorama. The plugin handles locks, loads configured XPaths, commits, and polls until completion.
Refer to EXAMPLES.md for screenshots of each step.
Commit behavior
- Locks: On push, the plugin first verifies there are no uncommitted changes or existing locks, then takes both a config lock and a commit lock with a descriptive comment containing the NetBox change ID.
- Upload: The rendered configuration (validated and normalized XML) is uploaded to Panorama as a file.
- XPath load: The plugin loads the uploaded file into Panorama using partial replace mode for each configured XPath. XPaths are, by default, deduced from the rendered XML for
templateanddevice-groupentries, or you can provide manual XPath entries per device. - Commit: Performs a full commit with the same change description, captures a commit job ID, and polls until the job reports success.
- Export: After a successful commit, the latest Panorama configuration matching the configured XPaths is exported back and stored to keep the diff up to date.
- Failure handling: If any step fails, the plugin reverts the candidate configuration when applicable, removes locks, and exports the latest Panorama config to resync state.
Compatibility
| Plugin Versions | NetBox Versions | Tested Panorama versions |
|---|---|---|
| 1.3.1 | 4.7.x | 10.2.10, 11.1.6, 12.1.9 |
| 1.3.0 | 4.7.x | 10.2.10, 11.1.6, 12.1.9 |
| 1.2.1 | 4.6.x | 10.2.10, 11.1.6 |
| 1.2.0 | 4.6.x | 10.2.10, 11.1.6 |
| 1.1.3 | 4.5.x | 10.2.10, 11.1.6 |
| 1.1.2 | 4.5.x | 10.2.10, 11.1.6 |
| 1.1.1 | 4.5.x | 10.2.10, 11.1.6 |
| 1.1.0 | 4.5.x | 10.2.10, 11.1.6 |
| 1.0.7 - 1.0.8 | 4.2.5 - 4.4.10 | 10.2.10, 11.1.6 |
| 1.0.0 - 1.0.6 | 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.
- There are multiple practical limitations due to how Panorama handles templates, such as:
- In panorama different configuration sections of virtual-router cannot be splitted into multiple templates. This means you need either generate all configurations of the template from NetBox or utilize the functionality which allows only specific XPaths to be overwritten by NetBox generated configs.
- If you want to bind interfaces to zones (or virtual-systems, virtual-routers) using ConfigPump, all interfaces for those zones needs to come from NetBox. This is because of there is single list under zone for interface bindings.
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.
Disclaimer
This plugin is developed and maintained by independent contributors. It is not an official Palo Alto Networks product, nor is it affiliated with, endorsed, or supported by Palo Alto Networks in any way. Use at your own discretion.
Metadata
Release files for netbox-panorama-configpump-plugin 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netbox_panorama_configpump_plugin-1.3.1.tar.gz | 6.7 MB | Without provenance | Details for netbox_panorama_configpump_plugin-1.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netbox_panorama_configpump_plugin-1.3.1-py3-none-any.whl | Python 3 | none | any | Details for netbox_panorama_configpump_plugin-1.3.1-py3-none-any.whl |
Total release size: 13.6 MB
Release files / netbox_panorama_configpump_plugin-1.3.1.tar.gz
| Download URL | netbox_panorama_configpump_plugin-1.3.1.tar.gz |
|---|---|
| Size | 6.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8351cc49c7e708f0baa8d155ac82da74ff76854ad30d41325788b9856fbc90a
|
|
BLAKE2b-256 checksum How to use checksums |
b135137e5aa6c01daa2853c25f9602beeaf782785ae27114e6a1995972b85576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Release files / netbox_panorama_configpump_plugin-1.3.1-py3-none-any.whl
| Download URL | netbox_panorama_configpump_plugin-1.3.1-py3-none-any.whl |
|---|---|
| Size | 6.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b93a3c66ba93918ae8228cb8a45e479471f1717dba9c0da257f3693bda52ddb
|
|
BLAKE2b-256 checksum How to use checksums |
c831f9c8d9cc7c4f10a4591fe8625e4e2daa3c14b5d5613d64b69dd189791d59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.18
|
Security for netbox-panorama-configpump-plugin 1.3.1
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.