예제 #1
0
 /**
  * Log an OpenFlow error message from a switch 记录OpenFlow错误报文
  *
  * @param sw The switch that sent the error
  * @param error The error message
  */
 @LogMessageDoc(
     level = "ERROR",
     message = "Error {error type} {error code} from {switch} " + "in state {state}",
     explanation =
         "The switch responded with an unexpected error"
             + "to an OpenFlow message from the controller",
     recommendation =
         "This could indicate improper network operation. "
             + "If the problem persists restarting the switch and "
             + "controller may help.")
 protected void logError(OFErrorMsg error) {
   log.error(
       "{} from switch {} in state {}",
       new Object[] {error.toString(), getConnectionInfoString(), this.toString()});
 }
예제 #2
0
 /**
  * Log an OpenFlow error message from a switch
  *
  * @param sw The switch that sent the error
  * @param error The error message
  */
 protected void logError(OFErrorMsg error) {
   log.error(
       "{} from switch {} in state {}",
       new Object[] {error.toString(), getConnectionInfoString(), this.toString()});
 }