commit | e288e5b5087d8061988efff5dfddab4f2ae99955 | [log] [tgz] |
---|---|---|
author | Andrea Campanella <andrea@opennetworking.org> | Fri Apr 05 09:54:12 2019 +0200 |
committer | Andrea Campanella <andrea@opennetworking.org> | Mon Apr 08 07:19:28 2019 +0000 |
tree | 5ee1be7ba56a165adc8014e7a3281261a882076c | |
parent | 61eb99edda5c7fb2263a25bc1516c51cfffd283b [diff] |
Fixing port discovery in REST provider Change-Id: If6ecabc0c1d10cb855d702a2002a0b507bd63202
diff --git a/providers/rest/device/src/main/java/org/onosproject/provider/rest/device/impl/RestDeviceProvider.java b/providers/rest/device/src/main/java/org/onosproject/provider/rest/device/impl/RestDeviceProvider.java index 3dc2a8d..edbf5c7 100644 --- a/providers/rest/device/src/main/java/org/onosproject/provider/rest/device/impl/RestDeviceProvider.java +++ b/providers/rest/device/src/main/java/org/onosproject/provider/rest/device/impl/RestDeviceProvider.java
@@ -429,10 +429,10 @@ new DefaultDeviceDescription( updatedDeviceDescription, true, updatedDeviceDescription.annotations())); - //if ports are not discovered, retry the discovery - if (deviceService.getPorts(deviceId).isEmpty()) { - discoverPorts(deviceId); - } + } + //if ports are not discovered, retry the discovery + if (deviceService.getPorts(deviceId).isEmpty()) { + discoverPorts(deviceId); } } else { log.warn("No DeviceDescriptionDiscovery behaviour for device {}", deviceId);