Skip to main content

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 configurations from NetBox to Palo Alto Networks Panorama with a pull → diff → push workflow.

Concept

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.
  • Flexible updates: Easily overwrite Panorama Templates and Device Groups, or target arbitrary XML-API paths using XPath expressions defined per firewall device.
NetBox Panorama ConfigPump UI screenshot

Introduction video

Watch the 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

  1. Create firewall Device objects in NetBox.
  2. Create a Config Template (Jinja + XML) that renders Panorama XML from your NetBox data.
  3. Create a Connection Template for your Panorama instance (host + token key).
  4. Create a Connection, assign devices, then open it to view the generated XML and diff.
  5. Pull candidate config from Panorama to refresh the diff.
  6. 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. However, you can also perform targeted per-firewall XPath updates that modify only the specified XML paths to avoid full configuration overwrites.

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.0.3 4.2.5 - 4.3.7 10.2.10, 11.1.6
1.0.2 4.2.5 - 4.3.7 10.2.10, 11.1.6
1.0.1 4.2.5 - 4.3.7 10.2.10, 11.1.6
1.0.0 4.2.5 - 4.3.7 10.2.10, 11.1.6

Installation

  1. Install the plugin in the NetBox environment:

    pip install netbox-panorama-configpump-plugin
    
  2. 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,
        }
    }
    
  3. 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 via PLUGINS_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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_panorama_configpump_plugin-1.0.3.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file netbox_panorama_configpump_plugin-1.0.3.tar.gz.

File metadata

File hashes

Hashes for netbox_panorama_configpump_plugin-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9e211e076ead48c540d9178746d5e54ba8e773a7d744efde474b611e1b861de2
MD5 bd0cc881430280aa1bad9a450b8aca73
BLAKE2b-256 0e1058f48e376c787606e06a7b9c57b4b656a958156d718192b69417b8c550a6

See more details on using hashes here.

File details

Details for the file netbox_panorama_configpump_plugin-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_panorama_configpump_plugin-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa99f09b43b0592934c570bcf26879d19e0cc4829a331bae05962e77dcd18f82
MD5 491f142fcb0f7546c632874577a0c4bb
BLAKE2b-256 2ef9e7d8c8a214801860e01ed20d3d306714c892b078c9938cc848201fc8b956

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page