Skip to content
Snippets Groups Projects
Commit 0fe7674b authored by Alex Reimers's avatar Alex Reimers
Browse files

Merge pull request #8 from alexreimers/master

More modifications to controller init.
parents e8ae4b0c 177b7330
No related branches found
No related tags found
No related merge requests found
......@@ -1395,9 +1395,10 @@ public class Controller
protected void init() {
topology = new TopologyImpl();
deviceManager = new DeviceManagerImpl();
storageSource = new MemoryStorageSource();
counterStore = new CounterStore();
pktinProcTime = new PktinProcessingTime();
routingEngine = new RoutingImpl();
initStorageSource();
topology.setFloodlightProvider(this);
topology.setStorageSource(storageSource);
......@@ -1408,7 +1409,6 @@ public class Controller
initMessageFilterManager();
initStaticFlowPusher();
routingEngine = new RoutingImpl();
initForwarding();
// call this explicitly because it does setup
......@@ -1430,6 +1430,10 @@ public class Controller
JacksonCustomConverter.replaceConverter();
}
protected void initStorageSource() {
storageSource = new MemoryStorageSource();
}
protected void initMessageFilterManager() {
messageFilterManager = new OFMessageFilterManager();
messageFilterManager.init(this);
......
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