Open jcsicard opened 5 years ago
@jcsicard I have an update that uses a list of dictionaries; are you willing to test that for me?
Certainly. Was going to write and submit a patch myself but if you already have that done, great! Do you also handle the device list (name + vdom kv) vs device group list (name only)?
I wrote it a couple of weeks ago, and I forget the exact implementation. I want to say I updated the current param to be transformed into:
- name: fortigate_name
- name: other_fortigate_name
Ok, I myself was going to add
I have created branch fw_vdom
with my suggested edits; please feel free to suggest updates. I believe you could just pass {"name": device_group_name}
for device groups, but not sure.
When installing a policy_package with fortimgr_install, the "fortigate_name" parameter specifying the device on which to install the policy isn't respected and the Fortimanager actually pushes to all devices.
This seems to be because the Fortigate device specified with "fortigate_name" is passed as a list item for the "scope" parameter to the API endpoint (/securityconsole/install/package)
The scope parameter, according to the API doc should be
The API behaviour with the current format of the scope parameter seems to be to revert to push to all Fortigate devices.
(Tested on FortiManager 5.6.8)