Jonathan Hart
Committed by Gerrit Code Review

Register device listener in OLT app

Change-Id: Ic08932e97e92e11978f308f99a0b79c70f85acf4
......@@ -98,6 +98,8 @@ public class OLT {
public void activate() {
appId = coreService.registerApplication("org.onosproject.olt");
deviceService.addListener(deviceListener);
deviceService.getPorts(DeviceId.deviceId(oltDevice)).stream().forEach(
port -> {
if (!port.number().isLogical() && port.isEnabled()) {
......