Pattern designer: how do I use the precondition properly

daniloantic
Tera Contributor

So, Im creating a relation between cmdb_ci_firewall_device_fortinet and u_cmdb_ci_vdom.
When i run the pattern it fails because i have many firewalls creating relationship to many vdoms.

My idea is that only "MS" (Master) firewalls create a relationship with vdom and to ignore "SL" (Slave) firewalls.
I tried to do that with both precondition and creation criteria but it doesn't work.
The way i did it is $cmdb_ci_firewall_device_fortinet[].name Not contains "SL".

In my head this should work but i still have multiple dependency error (both firewalls create relationships to vdoms).

Any idea how can i filter cmdb_ci_firewall_device_fortine properly?

0 REPLIES 0