Skip to content
Snippets Groups Projects
Commit 3b1ed52a authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian Committed by Ronald Li
Browse files

Bug fix: handleLLDP() method uses incorrect port variable when getting the...

Bug fix: handleLLDP() method uses incorrect port variable when getting the state of the packet-in port.
parent f83c9ef6
Branches xenon
No related tags found
No related merge requests found
...@@ -519,7 +519,7 @@ public class LinkDiscoveryManager ...@@ -519,7 +519,7 @@ public class LinkDiscoveryManager
OFPhysicalPort physicalPort = remoteSwitch.getPort(remotePort); OFPhysicalPort physicalPort = remoteSwitch.getPort(remotePort);
int srcPortState = (physicalPort != null) ? physicalPort.getState() : 0; int srcPortState = (physicalPort != null) ? physicalPort.getState() : 0;
physicalPort = sw.getPort(remotePort); physicalPort = sw.getPort(pi.getInPort());
int dstPortState = (physicalPort != null) ? physicalPort.getState() : 0; int dstPortState = (physicalPort != null) ? physicalPort.getState() : 0;
// Store the time of update to this link, and push it out to routingEngine // Store the time of update to this link, and push it out to routingEngine
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment