Skip to content
Snippets Groups Projects
Commit 4285d048 authored by meiyangbigswitch's avatar meiyangbigswitch
Browse files

fix the tab error again

parent 1ea97585
No related branches found
No related tags found
No related merge requests found
......@@ -804,7 +804,7 @@ public class Controller implements IFloodlightProviderService,
boolean isActive = activeSwitches.containsKey(sw.getId());
if (sw.isActive()) {
// Transition from SLAVE to MASTER.
// Transition from SLAVE to MASTER.
if (!state.firstRoleReplyReceived ||
getAlwaysClearFlowsOnSwAdd()) {
......@@ -829,8 +829,8 @@ public class Controller implements IFloodlightProviderService,
// table for a newly connected switch is never
// flushed. Not sure how to handle that case though...
if (!isActive){
sw.clearAllFlowMods();
}
sw.clearAllFlowMods();
}
log.debug("First role reply from master switch {}, " +
"clear FlowTable to active switch list",
HexString.toHexString(sw.getId()));
......@@ -839,8 +839,8 @@ public class Controller implements IFloodlightProviderService,
// Some switches don't seem to update us with port
// status messages while in slave role.
if (!isActive){
readSwitchPortStateFromStorage(sw);
}
readSwitchPortStateFromStorage(sw);
}
// Only add the switch to the active switch list if
// we're not in the slave role. Note that if the role
// attribute is null, then that means that the switch
......
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