Committed by
Gerrit Code Review
Register device listener in OLT app
Change-Id: Ic08932e97e92e11978f308f99a0b79c70f85acf4
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -98,6 +98,8 @@ public class OLT { | ... | @@ -98,6 +98,8 @@ public class OLT { |
98 | public void activate() { | 98 | public void activate() { |
99 | appId = coreService.registerApplication("org.onosproject.olt"); | 99 | appId = coreService.registerApplication("org.onosproject.olt"); |
100 | 100 | ||
101 | + deviceService.addListener(deviceListener); | ||
102 | + | ||
101 | deviceService.getPorts(DeviceId.deviceId(oltDevice)).stream().forEach( | 103 | deviceService.getPorts(DeviceId.deviceId(oltDevice)).stream().forEach( |
102 | port -> { | 104 | port -> { |
103 | if (!port.number().isLogical() && port.isEnabled()) { | 105 | if (!port.number().isLogical() && port.isEnabled()) { | ... | ... |
-
Please register or login to post a comment