commit | 98de8a7f4340c3728799ab71b55d612ecd8cd573 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@opennetworking.org> | Wed May 30 17:47:01 2018 -0700 |
committer | Jonathan Hart <jono@opennetworking.org> | Wed May 30 17:47:01 2018 -0700 |
tree | 8e4a055a3c361224accfd20e2772f0443743364d | |
parent | 1d34c8b32069d5c0e83f84f18c041bcbedd87546 [diff] |
Only send UNI_ADDED events for enabled UNI ports Change-Id: I61da4f79529e223f505c20351bab2327ab47494e
diff --git a/app/src/main/java/org/opencord/olt/impl/Olt.java b/app/src/main/java/org/opencord/olt/impl/Olt.java index 29f070f..c3a6f73 100644 --- a/app/src/main/java/org/opencord/olt/impl/Olt.java +++ b/app/src/main/java/org/opencord/olt/impl/Olt.java
@@ -626,6 +626,7 @@ // Send UNI_ADDED events for all existing ports deviceService.getPorts(devId).stream() .filter(Olt.this::isUni) + .filter(Port::isEnabled) .forEach(p -> post(new AccessDeviceEvent( AccessDeviceEvent.Type.UNI_ADDED, devId, p)));