Skip to content
Snippets Groups Projects
Commit 17a92f2f authored by Shudong Zhou's avatar Shudong Zhou
Browse files

Add log message when all switch flows are cleared

parent 0781fe01
No related branches found
No related tags found
No related merge requests found
......@@ -1103,11 +1103,16 @@ public abstract class OFSwitchBase implements IOFSwitch {
this.role = role;
}
@LogMessageDoc(level="INFO",
message="Switch {switch} flow cleared",
explanation="The switch flow table has been cleared, " +
"this normally happens on switch connection")
@Override
public void clearAllFlowMods() {
if (channel == null || !isConnected())
return;
// Delete all pre-existing flows
log.info("Clearing all flows on switch {}", this);
OFMatch match = new OFMatch().setWildcards(OFMatch.OFPFW_ALL);
OFMessage fm = ((OFFlowMod) floodlightProvider.getOFMessageFactory()
.getMessage(OFType.FLOW_MOD))
......
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