Skip to content
Snippets Groups Projects
Commit 452b407d authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

Topology Manager must create a new topology instance in startup.

parent 2a7c6a1e
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