It depends on what you want to achieve.
If you are not interested in these interfaces at all, you can prevent them from creating - modify script "Hook::CreateInterface" in scripting library. Script is executed on configuration poll for each new interface (accessible as $1, https://www.netxms.org/documentation/nxsl-latest/#class-interface) and should return true or false. If return value is false - interface will not be created.
It's possible to use $1->ifType (interface type as defined by IANA, list of interface types available here: https://github.com/netxms/netxms/blob/master/include/nms_common.h#L908, or can be seen on the object overview tab when interface is selected).
Or you can query node via SNMP to get some data.
If you want to keep interfaces in the system, but ignore status change - simplest way is to set “Expected Interface State” to IGNORE. You can do it in configuration poll hook (Hook::ConfigurationPoll).
Sample:
for (i : $node->interfaces) {
if (i->ifType == 131) { // tunnel
i->setExpectedState("IGNORE");
}
}
If you want to block events in the EPP, add rule before any alarms or notifications:
Script:
i = $node->getInterface($5);
if (i->ifType == 131) { // or any other filter
return true;
}
return false;
Action:
stop processing
Alternatively, add script to your alarm / notification rules and return true only if it’s not dynamic interface:
i = $node->getInterface($5);
if (i->ifType == 131) { // or any other filter
return true;
}
return false;