Skip to content
Snippets Groups Projects
Commit bcbe53b0 authored by Tulio Ribeiro's avatar Tulio Ribeiro
Browse files

Minor bugs fixed.

Tests ok.
parent f2642f01
No related branches found
No related tags found
No related merge requests found
...@@ -106,8 +106,6 @@ IRPCListener ...@@ -106,8 +106,6 @@ IRPCListener
Map<String, String> configParams = context.getConfigParams(FloodlightProvider.class); Map<String, String> configParams = context.getConfigParams(FloodlightProvider.class);
controllerId = configParams.get("controllerId"); controllerId = configParams.get("controllerId");
} }
@Override @Override
...@@ -181,8 +179,10 @@ IRPCListener ...@@ -181,8 +179,10 @@ IRPCListener
@Override @Override
public void switchActivated(DatapathId switchId) { public void switchActivated(DatapathId switchId) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
String switches = getActiveSwitches();
if(switches==null)return;
try { try {
this.storeFT.put(controllerId, getActiveSwitches()); this.storeFT.put(controllerId, switches);
} catch (SyncException e) { } catch (SyncException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
......
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