don't install filtering objectives on uplink port
Change-Id: I866a82bea33c33c1403b62c3edc619d5df50758f
diff --git a/apps/olt/app/src/main/java/org/onosproject/olt/impl/Olt.java b/apps/olt/app/src/main/java/org/onosproject/olt/impl/Olt.java
index ce94c2b..95e7693 100644
--- a/apps/olt/app/src/main/java/org/onosproject/olt/impl/Olt.java
+++ b/apps/olt/app/src/main/java/org/onosproject/olt/impl/Olt.java
@@ -406,7 +406,8 @@
//TODO: Port handling and bookkeeping should be inproved once
// olt firmware handles correct behaviour.
case PORT_ADDED:
- if (event.port().isEnabled()) {
+ if (oltData.get(devId).uplink() != event.port().number() &&
+ event.port().isEnabled()) {
installFilteringObjectives(devId, event.port());
}
break;
@@ -415,7 +416,6 @@
unprovisionSubscriber(devId, olt.uplink(),
event.port().number(),
olt.vlan());
- installFilteringObjectives(devId, event.port());
break;
case PORT_UPDATED:
break;