vladimirs-git / fortigate-api

Python package for configuring Fortigate (Fortios) devices using REST API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How are policies and address groups associated

MonsterZwj opened this issue · comments

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

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