protected void discoverOnAllPorts(){
  if (log.isTraceEnabled()) {
    log.trace("Sending LLDP packets out of all the enabled ports");
  }
  for (  long sw : floodlightProvider.getAllSwitchDpids()) {
    IOFSwitch iofSwitch=floodlightProvider.getSwitch(sw);
    if (iofSwitch == null)     continue;
    if (iofSwitch.getEnabledPorts() != null) {
      for (      ImmutablePort ofp : iofSwitch.getEnabledPorts()) {
        if (isLinkDiscoverySuppressed(sw,ofp.getPortNumber()))         continue;
        if (autoPortFastFeature && iofSwitch.isFastPort(ofp.getPortNumber()))         continue;
        sendDiscoveryMessage(sw,ofp.getPortNumber(),true,false);
        NodePortTuple npt=new NodePortTuple(sw,ofp.getPortNumber());
        addToMaintenanceQueue(npt);
      }
    }
  }
}

protected void discoverOnAllPorts ( ) { if ( log . isTraceEnabled ( ) ) { log . trace ( "Sending LLDP packets out of all the enabled ports" ) ; } for ( long sw : floodlightProvider . getAllSwitchDpids ( ) ) { IOFSwitch iofSwitch = floodlightProvider . getSwitch ( sw ) ; if ( iofSwitch == null ) continue ; if ( iofSwitch . getEnabledPorts ( ) != null ) { for ( ImmutablePort ofp : iofSwitch . getEnabledPorts ( ) ) { if ( isLinkDiscoverySuppressed ( sw , ofp . getPortNumber ( ) ) ) continue ; if ( autoPortFastFeature && iofSwitch . isFastPort ( ofp . getPortNumber ( ) ) ) continue ; sendDiscoveryMessage ( sw , ofp . getPortNumber ( ) , true , false ) ; NodePortTuple npt = new NodePortTuple ( sw , ofp . getPortNumber ( ) ) ; addToMaintenanceQueue ( npt ) ; } } } }
send lldps to all switch - ports
