You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.
Have you ever considered creating a generic "Panos API module", which you allows you to configure things not covered by the current set of Ansible Panos modules?
Take the Cisco ACI modules as an example. Instead of having to create hundreds of modules to cover all possible ACI scenarios, @dagwieers created the aci_rest module to do just that. It supports XML, JSON and YAML as the body input.
The alternative is to start building custom modules or hacks using uri. Take sub interfaces #194 which is still not supported. You could use uri like so:
Beware that the official position of the Ansible core team is that they do not want wrappers around APIs, but instead high-level interface modules. I don't agree with that position obviously, and for ACI it could mean thousands of modules (of which most are niche modules).
We also see in the field that most companies start off with the basic modules to learn the product, but over time (or when they hit needs that are not fulfilled by standard modules) switch partly and eventually completely to the flexibility of aci_rest.
This flexibility has also to do with the limitations of Ansible itself, which is not designed for managing tens of thousands objects in iteration. Something I would like to fix with: ansible/proposals#71 (comment)
Have you ever considered creating a generic "Panos API module", which you allows you to configure things not covered by the current set of Ansible Panos modules?
Take the Cisco ACI modules as an example. Instead of having to create hundreds of modules to cover all possible ACI scenarios, @dagwieers created the
aci_rest
module to do just that. It supports XML, JSON and YAML as the body input.See https://docs.ansible.com/ansible/devel/modules/aci_rest_module.html and https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/network/aci/aci_rest.py .
The alternative is to start building custom modules or hacks using
uri
. Take sub interfaces #194 which is still not supported. You could useuri
like so:.. but I would much prefer an official Panos module instead :-)
The text was updated successfully, but these errors were encountered: