Hi,
it could be like this:
You can also add additional contraints on subnet names as usual using $object->name.
Best regards,
Victor
it could be like this:
Code Select
if ($object->type == 1)
return true; // allow all subnets
parents = GetObjectParents($object);
//if (parents == null) return false;
foreach(p : parents)
{
if ((p->type == 5) && (p->name == "containerA" || p->name == "ContainerB")) return true;
}
return false;
You can also add additional contraints on subnet names as usual using $object->name.
Best regards,
Victor