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

Add log message for switch write throttling

parent 54c00a0a
No related branches found
No related tags found
No related merge requests found
......@@ -187,8 +187,15 @@ public abstract class OFSwitchBase implements IOFSwitch {
}
// For driver subclass to set throttling
@LogMessageDoc(level="INFO",
message="Enabled write throttling to {switch}",
explanation="OFMessage writes to switch is throttled " +
"to prevent excessively long queues")
protected void enableWriteThrottle(boolean enable) {
this.writeThrottleEnabled = enable;
if (enable) {
log.info("Enabled write throttling to {}", this);
}
}
@Override
......
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