Skip to content

get_public_nat_ip

Go to Automation

View in GitLab

Description

Extract public NAT IP addresses from firewall operational output, generate a normalized EDL file, and push the file to the GitLab paloalto repository when it changes. The playbook runs an operational command, converts results to an EDL, copies it into the local repo, and commits/pushes when the file content differs.

Credentials

  • panos_username / panos_password
  • gitlab SSH keys (variables)

Input

Variable Description
local_repo_path Local clone path for the paloalto repository (defaults to ~/paloalto)
edl_file Target EDL filename under EDL/ (defaults to EDL_D09_Public_NAT_IP.txt)
gitlab_pubkey, gitlab_privkey SSH keys used to clone/push the repository
default_marvin_env If set to qa the playbook clones the qa branch instead of main (optional)

Output

  • Generated EDL file under {{ local_repo_path }}/EDL/{{ edl_file }} and, when contents changed, a git commit and push to the paloalto repository.

Dependencies