Skip to content
Snippets Groups Projects
Commit 66faff3f authored by abat's avatar abat
Browse files

Merge into master from pull request #17:

Fix an issue in ITopologyImpl where we were leaking LLDPs across islands. (https://github.com/floodlight/floodlight/pull/17)
parents a616db64 7bdce672
No related branches found
No related tags found
No related merge requests found
......@@ -574,7 +574,10 @@ public class TopologyImpl implements IOFMessageListener, IOFSwitchListener,
if (remoteSwitch == null) {
// Ignore LLDPs not generated by Floodlight, or from a switch that has recently
// disconnected, or from a switch connected to another Floodlight instance
return Command.CONTINUE;
if (log.isDebugEnabled()) {
log.debug("Received LLDP from remote switch not connected to the controller");
}
return Command.STOP;
}
if (!remoteSwitch.portEnabled(remotePort)) {
......@@ -601,7 +604,7 @@ public class TopologyImpl implements IOFMessageListener, IOFSwitchListener,
}
private Command handleBpdu(BPDU bpdu, IOFSwitch sw, OFPacketIn pi) {
// TODO - fill this in.
// TODO - handle STP here
return Command.STOP;
}
......@@ -620,7 +623,6 @@ public class TopologyImpl implements IOFMessageListener, IOFSwitchListener,
return Command.CONTINUE;
}
//TODO - we can optimize the updating clusters on a link added
protected void addOrUpdateLink(LinkTuple lt, int srcPortState,
int dstPortState) {
lock.writeLock().lock();
......@@ -663,9 +665,6 @@ public class TopologyImpl implements IOFMessageListener, IOFSwitchListener,
updateOperation = UpdateOperation.ADD;
linkChanged = true;
if (log.isTraceEnabled()) {
log.trace("Added link {}", lt);
}
log.info("Added link {}", lt);
} else {
// Only update the port states if they've changed
......
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