commit | 80ba4a7b081db3085b654107402a67798a44e637 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Wed Jun 10 18:19:41 2015 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Thu Jun 11 17:51:59 2015 +0000 |
tree | 3e420cc65682fc63edbf5b0f5bb8ac6a541189cb | |
parent | 7b7eabc6f67eb9d1447e24d9d7994e04750414ae [diff] |
Register device listener in OLT app Change-Id: Ic08932e97e92e11978f308f99a0b79c70f85acf4
diff --git a/apps/olt/src/main/java/org/onosproject/olt/OLT.java b/apps/olt/src/main/java/org/onosproject/olt/OLT.java index f3cbb1d..4569cc0 100644 --- a/apps/olt/src/main/java/org/onosproject/olt/OLT.java +++ b/apps/olt/src/main/java/org/onosproject/olt/OLT.java
@@ -98,6 +98,8 @@ 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()) {