private void processNewPort(long sw,short p){
  if (isLinkDiscoverySuppressed(sw,p)) {
    return;
  }
  IOFSwitch iofSwitch=floodlightProvider.getSwitch(sw);
  if (iofSwitch == null)   return;
  if (autoPortFastFeature && iofSwitch.isFastPort(p)) {
    return;
  }
  NodePortTuple npt=new NodePortTuple(sw,p);
  discover(sw,p);
  if (!iofSwitch.isFastPort(p)) {
    addToQuarantineQueue(npt);
  }
 else {
    addToMaintenanceQueue(npt);
  }
}

private void processNewPort ( long sw , short p ) { if ( isLinkDiscoverySuppressed ( sw , p ) ) { return ; } IOFSwitch iofSwitch = floodlightProvider . getSwitch ( sw ) ; if ( iofSwitch == null ) return ; if ( autoPortFastFeature && iofSwitch . isFastPort ( p ) ) { return ; } NodePortTuple npt = new NodePortTuple ( sw , p ) ; discover ( sw , p ) ; if ( ! iofSwitch . isFastPort ( p ) ) { addToQuarantineQueue ( npt ) ; } else { addToMaintenanceQueue ( npt ) ; } }
process a new port . if link discovery is disabled on the port , then do nothing . if autoportfast feature is enabled and the port is a fast port , then do nothing . otherwise , send lldp message . add the port to quarantine .
