Skip to content
Snippets Groups Projects
Commit 6dbfddb2 authored by abat's avatar abat
Browse files

Merge into master from pull request #239:

Topology Manager must create new topology instance upon startup. (https://github.com/floodlight/floodlight/pull/239)
parents 2a7c6a1e 452b407d
No related branches found
No related tags found
No related merge requests found
......@@ -624,7 +624,7 @@ public class TopologyManager implements
ScheduledExecutorService ses = threadPool.getScheduledExecutor();
newInstanceTask = new SingletonTask(ses, new NewInstanceWorker());
linkDiscovery.addListener(this);
newInstanceTask.reschedule(1, TimeUnit.MICROSECONDS);
clearCurrentTopology();
floodlightProvider.addOFMessageListener(OFType.PACKET_IN, this);
floodlightProvider.addHAListener(this);
addRestletRoutable();
......@@ -1022,7 +1022,7 @@ public class TopologyManager implements
tunnelLinks.clear();
appliedUpdates.clear();
}
/**
* Clears the current topology. Note that this does NOT
* send out updates.
......@@ -1030,8 +1030,9 @@ public class TopologyManager implements
private void clearCurrentTopology() {
this.clear();
createNewInstance();
lastUpdateTime = new Date();
}
/**
* Getters. No Setters.
*/
......
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