mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-22 12:51:09 +02:00
adding offset for olt vlan to port mapping
Change-Id: I179e61d3a013ff7f80ffbf27d70e8f642470465e
This commit is contained in:
parent
f64c077aab
commit
17ff25fe91
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user