How to disable opennms interface discovery

can anyone help me?

i have some nodes that have multiple interfaces.
opennms discovers all interfaces.
how can i disable discovery for secondary interfaces

thanks

Not sure if there is an possibility to ignore secondary interfaces.
But depending on your environment you can use a SnmpInterfacePolicy to match against names:

      <policy name="ignore Docker interfaces" class="org.opennms.netmgt.provision.persist.policies.MatchingSnmpInterfacePolicy">
         <parameter key="action" value="DO_NOT_PERSIST"/>
         <parameter key="ifDescr" value="~^docker.*$"/>
         <parameter key="matchBehavior" value="ALL_PARAMETERS"/>
      </policy>

Or maybe an IpInterfacePolicy which matches an IP address range:

      <policy name="noMgt17217s" class="org.opennms.netmgt.provision.persist.policies.MatchingIpInterfacePolicy">
         <parameter key="action" value="DO_NOT_PERSIST"/>
         <parameter key="ipAddress" value="~172\.17\..*"/>
         <parameter key="matchBehavior" value="ALL_PARAMETERS"/>
      </policy>

Hi,

where is this IpInterfacePolicy ?

Did you find the answer?

This policy gets added to your requisition definition.