adding offset for olt vlan to port mapping

Change-Id: I179e61d3a013ff7f80ffbf27d70e8f642470465e
This commit is contained in:
alshabib 2015-06-01 10:57:31 -07:00 committed by Gerrit Code Review
parent f64c077aab
commit 17ff25fe91

View File

@ -68,6 +68,8 @@ public class OLT {
private ApplicationId appId;
public static final int OFFSET = 200;
public static final int UPLINK_PORT = 129;
public static final String OLT_DEVICE = "of:90e2ba82f97791e9";
@ -114,7 +116,7 @@ public class OLT {
}
private void provisionVlanOnPort(PortNumber p) {
long port = p.toLong();
long port = p.toLong() + OFFSET;
if (port > 4095) {
log.warn("Port Number {} exceeds vlan max", port);
return;