Skip to content
Snippets Groups Projects
Commit 6d6e9e4b authored by Gregor Maier's avatar Gregor Maier
Browse files

Move initialization code from startupComponents to init

parent 765e57b3
No related branches found
No related tags found
No related merge requests found
......@@ -1508,6 +1508,9 @@ public class Controller implements IFloodlightProviderService,
this.setAlwaysClearFlowsOnSwAdd(false);
log.info("Flush switches on reconnect -- Disabled");
}
this.roleManager = new RoleManager(this.notifiedRole,
INITIAL_ROLE_CHANGE_DESCRIPTION);
this.switchManager = new SwitchManager(this.notifiedRole);
}
/**
......@@ -1537,9 +1540,7 @@ public class Controller implements IFloodlightProviderService,
restApi.addRestletRoutable(new CoreWebRoutable());
this.ses = threadPool.getScheduledExecutor();
this.roleManager = new RoleManager(this.notifiedRole,
INITIAL_ROLE_CHANGE_DESCRIPTION);
this.switchManager = new SwitchManager(this.notifiedRole);
try {
this.syncService.registerStore(SWITCH_SYNC_STORE_NAME, Scope.LOCAL);
this.storeClient = this.syncService
......
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