Skip to main content

PyPI PyPI Build Status Coverage Status

NAPALM PANOS

This is community version of NAPALM for the Palo Alto firewall operating system. For standard tutorials and overview of NAPALM, please review their documentation.

Configuration Support

This table identifies the currently available configuration methods supported:

Feature Supported
Config Replace ✅
Commit Confirm ❌
Config Merge ✅
Compare Config ✅
Atomic Changes ✅
Rollback ✅

Commit Confirm is not supported by the vendor at the time of this writing.

Configuration Lock is also supported, but the optional_args config_lock key set to True. You can see in this example.

from napalm import get_network_driver

panos_device = "nyc-sw01"
panos_user = "admin"
panos_password = "pass123"
driver = get_network_driver("panos")
optional_args = {"config_lock": True}

with driver(panos_device, panos_user, panos_password, optional_args=optional_args) as device:
    device.load_replace_candidate(filename="2022-01-01-intended-config.xml")
    device.commit_config()

As shown in the example above, the use of NAPALM's context manager is supported and recommended to use.

The locks are acquired and released using XML API. Locks for config and commit lock are obtained and released separately from each other. Both locks are released automatically by the device when a commit is made on the device.

For troubleshooting:

  • The code crashed in a way that the lock could not be removed?
    • Remove the lock manually (CLI, API, Web UI). The lock can only be removed by the administrator who set it, or by a superuser.
  • The lock disappeared in the middle of program execution?
    • Did someone do a commit on the device? The locks are removed automatically when the administrator who set the locks performs a commit operation on the device.

Supported Getters

This table identifies the currently available getters and the support for each:

Getter Supported
get_arp_table ✅
get_bgp_config ❌
get_bgp_neighbors ❌
get_bgp_neighbors_detail ❌
get_config ✅
get_environment ❌
get_facts ✅
get_firewall_policies ❌
get_interfaces ✅
get_interfaces_counters ❌
get_interfaces_ip ✅
get_ipv6_neighbors_table ❌
get_lldp_neighbors ✅
get_lldp_neighbors_detail ❌
get_mac_address_table ❌
get_network_instances ❌
get_ntp_peers ❌
get_ntp_servers ❌
get_ntp_stats ❌
get_optics ❌
get_probes_config ❌
get_probes_results ❌
get_route_to ✅
get_snmp_information ❌
get_users ❌
get_vlans ❌
is_alive ✅
ping ❌
traceroute ❌

Release files for napalm-panos 0.7.1

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

Source distribution (sdist)

Source distribution for napalm-panos 0.7.1
File Size Uploaded
napalm_panos-0.7.1.tar.gz 16.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for napalm-panos 0.7.1
File Interpreter ABI Platform
napalm_panos-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 33.3 kB

Release files / napalm_panos-0.7.1.tar.gz

Download URL napalm_panos-0.7.1.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bda4ccd782fb51636afccdb0cce0089695cec856fbdb9caff2ae31d261435f3e
BLAKE2b-256 checksum
How to use checksums
f1a6dfa151eb530aa893cfa4ac371c47956db11e20774ed20fa30c320feb4e20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / napalm_panos-0.7.1-py3-none-any.whl

Download URL napalm_panos-0.7.1-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7995c579c125f36ccd934142214693eab41205d7566850cd7d2c81cef40c41ff
BLAKE2b-256 checksum
How to use checksums
62c2ea7f3e4c2d8264dca52b97975ef025d519383c64b9cd560ee31746015102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

1 release file

0.5.1

1 release file

0.4.2

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

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