Small patch fixing issue with invoking AlarmConfig behavor
Change-Id: If6626f98e2ad43c70c6e0319501e13299b55d562
diff --git a/providers/netconf/alarm/src/main/java/org/onosproject/provider/netconf/alarm/NetconfAlarmProvider.java b/providers/netconf/alarm/src/main/java/org/onosproject/provider/netconf/alarm/NetconfAlarmProvider.java
index 9b65f25..84007bc 100644
--- a/providers/netconf/alarm/src/main/java/org/onosproject/provider/netconf/alarm/NetconfAlarmProvider.java
+++ b/providers/netconf/alarm/src/main/java/org/onosproject/provider/netconf/alarm/NetconfAlarmProvider.java
@@ -33,10 +33,7 @@
import org.onosproject.net.Device;
import org.onosproject.net.DeviceId;
import org.onosproject.net.device.DeviceService;
-import org.onosproject.net.driver.DefaultDriverData;
-import org.onosproject.net.driver.DefaultDriverHandler;
import org.onosproject.net.driver.Driver;
-import org.onosproject.net.driver.DriverData;
import org.onosproject.net.driver.DriverService;
import org.onosproject.net.provider.AbstractProvider;
import org.onosproject.net.provider.ProviderId;
@@ -155,8 +152,6 @@
Device device = deviceService.getDevice(deviceId);
if (deviceDriver != null && device.is(DeviceAlarmConfig.class)) {
DeviceAlarmConfig alarmTranslator = device.as(DeviceAlarmConfig.class);
- DriverData driverData = new DefaultDriverData(deviceDriver, deviceId);
- alarmTranslator.setHandler(new DefaultDriverHandler(driverData));
Set<Alarm> alarms = alarmTranslator.translateAlarms(ImmutableList.of(event));
triggerProbe(deviceId, alarms);
} else {