commit | 1b3a008de49f902131f15174439f89b86832e73e | [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:38 2019 +0000 |
tree | 60bb006c1cd8ac8e9373480f30052568a61d6c09 | |
parent | 03120b015ba3dd7661c68505eeebe411b142b390 [diff] |
Fixing port discovery in REST provider Change-Id: If6ecabc0c1d10cb855d702a2002a0b507bd63202 (cherry picked from commit e288e5b5087d8061988efff5dfddab4f2ae99955)
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);