edit_device_types
Description
Clone or update the device_types repository, add or update a device type entry in the YAML file, commit and push the change, then run verification scripts that ensure tags and groups exist on the main Palo Alto devices and Panorama. Commits to the firewall and Panorama are attempted but non-fatal.
Credentials
gitlab_pubkey,gitlab_privkey: SSH keys to clone/push thedevice_types_repo.panos_username,panos_password,CA_PA5430_url,CPF_PA5430_url,panorama_url: Credentials/targets used by verification scripts and optional commits.
Input
| Variable | Description |
|---|---|
yaml_file |
Filename inside device_types_repo (e.g. device_types.yml) to edit |
device_type, device_groep, device_code, devicetype_tag, applicatie_tag, leverancier_tag, contact_tag, PA_group, Zone_inhoofdTom, segmenten_infoblox |
Metadata fields used to create the device entry |
local_repo_path |
Local path where the repo is cloned (defaults to ~/device_types_repo) |
gitlab_pubkey, gitlab_privkey |
SSH keys for git operations |
Output
- Updated YAML file committed and pushed to the
device_types_repowhen changes exist. - Verification scripts executed against main PA devices and Panorama to add/check tags and groups; optional commits to devices may be performed (non-fatal errors are ignored).