import java.util.concurrent.Future;
import org.apache.felix.dm.Component;
+import org.apache.taglibs.standard.lang.jstl.DivideOperator;
import org.opendaylight.controller.clustering.services.CacheConfigException;
import org.opendaylight.controller.clustering.services.CacheExistException;
import org.opendaylight.controller.clustering.services.IClusterContainerServices;
if (switchNeedsTieringUpdate(dstNode, currentTier + 1)) {
Tier t = new Tier(currentTier + 1);
switchManager.setNodeProp(dstNode, t);
- //logger.info("Updating Switch Tier "+ (currentTier+1) +" for "+String.format("%x", dstSw.getId()));
needsVisiting.add(dstNode);
}
}
return true;
else if (t.getValue() > tier)
return true;
- //logger.info(getContainerName()+" -> "+ "Switch "+String.format("%x", sw.getId())+ " is in better Tier "+sw.getTier()+" ... skipping "+tier);
return false;
}
}
private class ARPRefreshHandler extends TimerTask {
+ @SuppressWarnings("deprecation")
public void run() {
if ((clusterContainerService != null)
&& !clusterContainerService.amICoordinator()) {
notifyHostLearnedOrRemoved(host, false);
} else if (arp_cntdown <= switchManager.getHostRetryCount()) {
/* Use the services of arphandler to check if host is still there */
- // logger.info("Probe for Host:{}", host);
- //logger.info("ARP Probing ("+arp_cntdown+") for "+host.toString());
logger.trace("ARP Probing ({}) for {}({})", new Object[] {
arp_cntdown,
host.getNetworkAddress().getHostAddress(),
nc,
Short.valueOf(vlan));
} catch (UnknownHostException e) {
- e.printStackTrace();
+ logger.error("",e);
return new Status(StatusCode.BADREQUEST, "Invalid Address");
}
}
address = InetAddress.getByName(networkAddress);
return removeStaticHostReq(address);
} catch (UnknownHostException e) {
- e.printStackTrace();
+ logger.error("",e);
return new Status(StatusCode.BADREQUEST, "Invalid Address");
}
}