Skip to main content

Network Automation and Programmability Abstraction Layer with Multivendor support for PANOS.

Project description

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:

Getter 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 = device"
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

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

napalm_panos-0.6.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

napalm_panos-0.6.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file napalm_panos-0.6.0.tar.gz.

File metadata

  • Download URL: napalm_panos-0.6.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for napalm_panos-0.6.0.tar.gz
Algorithm Hash digest
SHA256 5c6451b8b863f2d8d21883943ed6c3e3cf1e29f2941e2bd6a9cdb51ebc4d761f
MD5 129d9a435c1b6694564977b6a1d1a693
BLAKE2b-256 0ad55a7c7fcbf7377cd5e2ba385d668cf7792963448675cc2bfee0fd710e6c11

See more details on using hashes here.

File details

Details for the file napalm_panos-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: napalm_panos-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for napalm_panos-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1e2a07aa73a67f44a611857f0a7fba51325800b5d918105cc9f32f87ae48a7c
MD5 7f2dcfbbebc7cf73176c370c85499a65
BLAKE2b-256 3332ab18b8b1bb7b159a5030180dc10a698f8093e7e9b7977a720c8d53e68b12

See more details on using hashes here.

Supported by

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