jiangrui
Committed by Thomas Vachuska

ONOS-3362 Fix triggerProbe method of ovsdbDeviceProvider.

Change-Id: Idc1d5f8482c16f8145154e03009d7cf50fdd7e53
...@@ -89,8 +89,14 @@ public class OvsdbDeviceProvider extends AbstractProvider ...@@ -89,8 +89,14 @@ public class OvsdbDeviceProvider extends AbstractProvider
89 89
90 @Override 90 @Override
91 public void triggerProbe(DeviceId deviceId) { 91 public void triggerProbe(DeviceId deviceId) {
92 - // TODO: This will be implemented later.
93 log.info("Triggering probe on device {}", deviceId); 92 log.info("Triggering probe on device {}", deviceId);
93 + if (!isReachable(deviceId)) {
94 + log.error("Failed to probe device {}", deviceId);
95 + providerService.deviceDisconnected(deviceId);
96 + return;
97 + } else {
98 + log.trace("Confirmed device {} connection", deviceId);
99 + }
94 } 100 }
95 101
96 @Override 102 @Override
......