private void writeOFMessagesToSwitch(DatapathId dpid,List<OFMessage> messages){
  IOFSwitch ofswitch=switchService.getSwitch(dpid);
  if (ofswitch != null) {
    if (log.isDebugEnabled()) {
      log.debug("Sending {} new entries to {}",messages.size(),dpid);
    }
    ofswitch.write(messages);
  }
}

private void writeOFMessagesToSwitch ( DatapathId dpid , List < OFMessage > messages ) { IOFSwitch ofswitch = switchService . getSwitch ( dpid ) ; if ( ofswitch != null ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "Sending {} new entries to {}" , messages . size ( ) , dpid ) ; } ofswitch . write ( messages ) ; } }
writes a list of ofmessages to a switch
