Committed by
Gerrit Code Review
adding offset for olt vlan to port mapping
Change-Id: I179e61d3a013ff7f80ffbf27d70e8f642470465e
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -68,6 +68,8 @@ public class OLT { | ... | @@ -68,6 +68,8 @@ public class OLT { |
68 | 68 | ||
69 | private ApplicationId appId; | 69 | private ApplicationId appId; |
70 | 70 | ||
71 | + public static final int OFFSET = 200; | ||
72 | + | ||
71 | public static final int UPLINK_PORT = 129; | 73 | public static final int UPLINK_PORT = 129; |
72 | 74 | ||
73 | public static final String OLT_DEVICE = "of:90e2ba82f97791e9"; | 75 | public static final String OLT_DEVICE = "of:90e2ba82f97791e9"; |
... | @@ -114,7 +116,7 @@ public class OLT { | ... | @@ -114,7 +116,7 @@ public class OLT { |
114 | } | 116 | } |
115 | 117 | ||
116 | private void provisionVlanOnPort(PortNumber p) { | 118 | private void provisionVlanOnPort(PortNumber p) { |
117 | - long port = p.toLong(); | 119 | + long port = p.toLong() + OFFSET; |
118 | if (port > 4095) { | 120 | if (port > 4095) { |
119 | log.warn("Port Number {} exceeds vlan max", port); | 121 | log.warn("Port Number {} exceeds vlan max", port); |
120 | return; | 122 | return; | ... | ... |
-
Please register or login to post a comment