use of net.percederberg.mibble.MibSymbol in project opennms by OpenNMS.
the class Mib2Events method convertMibToEvents.
public Events convertMibToEvents(Mib mib, String ueibase) {
Events events = new Events();
for (MibSymbol sym : getAllSymbolsFromMib(mib)) {
if (!(sym instanceof MibValueSymbol)) {
continue;
}
MibValueSymbol vsym = (MibValueSymbol) sym;
if ((!(vsym.getType() instanceof SnmpNotificationType)) && (!(vsym.getType() instanceof SnmpTrapType))) {
continue;
}
events.addEvent(getTrapEvent(vsym, ueibase));
}
return events;
}
Aggregations