akshaymane920 / pyFortimanagerAPI

A wrapper for FortiManager API
https://akshaymane920.github.io/pyFortimanagerAPI/
MIT License
32 stars 34 forks source link

Dynamic objects in source and/or destination are not in output #31

Open RemcoVroman opened 1 year ago

RemcoVroman commented 1 year ago

Hi,

when I run the allpolicies = fmngr.get_firewall_policies(policy_package_name=fwpackage) I get all the policies belonging to "fwpackage".

If there is a dynamic object in the source and/or destination (for example Fortinet-FortiGuard.Secure.DNS) the source or destination is not include in the output. It get you into trouble when you try to find specific names in the source or destination.

As a work around I identify the rules containing a dynamic object and check them manualy after the script has been executed.

Is it possible to get the dynamic objects in the output as well ?

Best regards, Remco