Committed by
Gerrit Code Review
Fix parent resource path and set the correct child
Change-Id: I2cbb21d2d8e63cfc2181c16b0c4131e3aec7fd82
Showing
1 changed file
with
1 additions
and
3 deletions
| ... | @@ -16,7 +16,6 @@ | ... | @@ -16,7 +16,6 @@ |
| 16 | package org.onosproject.net.newresource.impl; | 16 | package org.onosproject.net.newresource.impl; |
| 17 | 17 | ||
| 18 | import org.onosproject.net.Device; | 18 | import org.onosproject.net.Device; |
| 19 | -import org.onosproject.net.DeviceId; | ||
| 20 | import org.onosproject.net.Port; | 19 | import org.onosproject.net.Port; |
| 21 | import org.onosproject.net.device.DeviceEvent; | 20 | import org.onosproject.net.device.DeviceEvent; |
| 22 | import org.onosproject.net.device.DeviceListener; | 21 | import org.onosproject.net.device.DeviceListener; |
| ... | @@ -61,8 +60,7 @@ final class ResourceDeviceListener implements DeviceListener { | ... | @@ -61,8 +60,7 @@ final class ResourceDeviceListener implements DeviceListener { |
| 61 | } | 60 | } |
| 62 | 61 | ||
| 63 | private void registerDeviceResource(Device device) { | 62 | private void registerDeviceResource(Device device) { |
| 64 | - DeviceId deviceId = device.id(); | 63 | + executor.submit(() -> adminService.registerResources(ResourcePath.ROOT, device.id())); |
| 65 | - executor.submit(() -> adminService.registerResources(new ResourcePath(ResourcePath.ROOT, deviceId))); | ||
| 66 | } | 64 | } |
| 67 | 65 | ||
| 68 | private void registerPortResource(Device device, Port port) { | 66 | private void registerPortResource(Device device, Port port) { | ... | ... |
-
Please register or login to post a comment