panos_bgp_policy_rule doesn't support gathered_filter
antoinekh opened this issue · 1 comments
antoinekh commented
Describe the bug
Impossible to gather bgp policy rule:
{"changed": false, "msg": "value of state must be one of: present, absent, got: gathered"}
code
paloaltonetworks.panos.panos_bgp_policy_rule :
provider: '{{ provider }}'
template: "template-1"
type: 'export'
name: "my_export_rule"
vr_name: 'VR-firewall1'
state: 'gathered'
gathered_filter: '*'
register: policy_rule
Expected behavior
be able to gather the detail of a bgp rule (export or import)
Current behavior
No gathered_filter option
Possible solution
Add with_gathered_filter=True, in the get_connection in the python file.
Screenshots
Context
I need to have a prefix in an export BGP rule.
Since their is no merge action, I plan to collect the actual rule and create the new rule with in place prefix and new one.
Your Environment
Collection: paloaltonetworks.panos 2.13.2
Python: 3.6.8
Ansible: 2.10.17
jamesholland-uk commented
Requires more than just adding with_gathered_filter=True
in get_connection
, also requires re-write of module to use sdk_params
. Could be an enhancement in future