commit | 5f4d2e64026df1ab3bb612a152b3d7a1d67e9309 | [log] [tgz] |
---|---|---|
author | jiangrui <jiangrui1@huawei.com> | Mon Nov 16 12:52:35 2015 +0800 |
committer | Thomas Vachuska <tom@onlab.us> | Wed Nov 18 02:34:25 2015 +0000 |
tree | 282c2fb3197b14861d456a4fa31a24a2c434cedb | |
parent | a6b46098ae635343f18e42bd0c70a83a18cbce54 [diff] |
ONOS-3362 Fix triggerProbe method of ovsdbDeviceProvider. Change-Id: Idc1d5f8482c16f8145154e03009d7cf50fdd7e53
diff --git a/providers/ovsdb/device/src/main/java/org/onosproject/ovsdb/providers/device/OvsdbDeviceProvider.java b/providers/ovsdb/device/src/main/java/org/onosproject/ovsdb/providers/device/OvsdbDeviceProvider.java index ea0154f..d573458 100644 --- a/providers/ovsdb/device/src/main/java/org/onosproject/ovsdb/providers/device/OvsdbDeviceProvider.java +++ b/providers/ovsdb/device/src/main/java/org/onosproject/ovsdb/providers/device/OvsdbDeviceProvider.java
@@ -89,8 +89,14 @@ @Override public void triggerProbe(DeviceId deviceId) { - // TODO: This will be implemented later. log.info("Triggering probe on device {}", deviceId); + if (!isReachable(deviceId)) { + log.error("Failed to probe device {}", deviceId); + providerService.deviceDisconnected(deviceId); + return; + } else { + log.trace("Confirmed device {} connection", deviceId); + } } @Override