Filter ADOMs for the Fortinet pull connector
Additional filter conditions required in Fortinet pull connector.
Before you begin
Role required: tsom_visibility_admin
About this task
By default, the Fortinet pull connector collects metric data from all ADOMs. To limit collection to ADOMs that meet specific conditions, configure the following parameters on the connector instance (for example, Fortinet SD-WAN SLA Log):
| Parameter | Default | Description |
|---|---|---|
adomFilterEnabled |
false |
Turns ADOM filtering on or off. When false, the
connector collects all ADOMs and the filter is bypassed. When
true, the connector collects only the ADOMs that
the filter class accepts. |
adomFilterClass |
FortinetAdomFilterVF |
Name of the MID Server script include that implements the filter.
Evaluated only when adomFilterEnabled is
true. The class must be active, deployed to the MID
Server, and expose a shouldIncludeAdom(adomData)
handler that returns a Boolean. |
Two filter classes are provided:
FortinetAdomFilterVF(default) collects only ADOMs where therestricted_prdsproperty equals fabric and theVF SDWAN Service Providedmeta field equals yes.FortinetAdomFiltercollects all ADOMs unconditionally.
adomFilterEnabled to
true and adomFilterClass is not a valid script
include that is deployed to the MID Server, all ADOMs are blocked and metric collection
stops. Enable filtering only when the named class populates the conditions your
FortiManager deployment supports.Procedure
What to do next
To apply your own filtering logic, create a MID Server script include
(ecc_agent_script_include) that exposes a
shouldIncludeAdom(adomData) handler returning true
to collect the ADOM or false to skip it, deploy it to the MID Server,
and set adomFilterClass to its name.