vladimirs-git / fortigate-api

Python package for configuring Fortigate (Fortios) devices using REST API
Apache License 2.0
61 stars 18 forks source link

How are policies and address groups associated #15

Closed MonsterZwj closed 1 year ago

MonsterZwj commented 1 year ago

I would like to ask how the policy and address group are associated, is it through the groups attribute in the policy

vladimirs-git commented 1 year ago

They are associated through 'srcaddr' and 'dstaddr', where the name represents the interested address group. https://github.com/vladimirs-git/fortigate-api/blob/main/examples/policy.py#L38