alshabib
Committed by Gerrit Code Review

don't install filtering objectives on uplink port

Change-Id: I866a82bea33c33c1403b62c3edc619d5df50758f
...@@ -406,7 +406,8 @@ public class Olt ...@@ -406,7 +406,8 @@ public class Olt
406 //TODO: Port handling and bookkeeping should be inproved once 406 //TODO: Port handling and bookkeeping should be inproved once
407 // olt firmware handles correct behaviour. 407 // olt firmware handles correct behaviour.
408 case PORT_ADDED: 408 case PORT_ADDED:
409 - if (event.port().isEnabled()) { 409 + if (oltData.get(devId).uplink() != event.port().number() &&
410 + event.port().isEnabled()) {
410 installFilteringObjectives(devId, event.port()); 411 installFilteringObjectives(devId, event.port());
411 } 412 }
412 break; 413 break;
...@@ -415,7 +416,6 @@ public class Olt ...@@ -415,7 +416,6 @@ public class Olt
415 unprovisionSubscriber(devId, olt.uplink(), 416 unprovisionSubscriber(devId, olt.uplink(),
416 event.port().number(), 417 event.port().number(),
417 olt.vlan()); 418 olt.vlan());
418 - installFilteringObjectives(devId, event.port());
419 break; 419 break;
420 case PORT_UPDATED: 420 case PORT_UPDATED:
421 break; 421 break;
......