Skip to content

Instantly share code, notes, and snippets.

View ntwrkguru's full-sized avatar

Stephen Steiner ntwrkguru

View GitHub Profile
#!/usr/bin/env python3
'''
Firewall Management Module
This module provides a set of classes and functions to interact with and manage
a Palo Alto Next-Generation Firewall (NGFW). It includes capabilities to
retrieve firewall configurations, manage network interfaces, handle ARP tables,
retrieve SNMP versions, timezones, NTP servers, DNS servers, and configured
administrators. Additionally, it supports disk space management, content updates,
"""
Simple utility to generate an API key from a username/password
for a Panos device.
This module provides a class to generate and manage API keys for
Palo Alto Networks devices using username and password.
Dependencies:
- requests
- xmltodict

Inventory

---
all:
  hosts:
    switch1:
      ansible_ssh_host: 192.168.1.202
  vars:
    ansible_port: 22