public void retrievePceNetwork() {
- LOG.info("In PceCalculation retrieveNetwork: ");
+ LOG.debug("In PceCalculation retrieveNetwork");
if (!readMdSal()) {
returnStructure.setRC(ResponseCodes.RESPONSE_FAILED);
input.getServiceAEnd().getTxDirection().getPort().getPortName())
: null);
- LOG.info("parseInput: A and Z :[{}] and [{}]", anodeId, znodeId);
+ LOG.debug("parseInput: A and Z :[{}] and [{}]", anodeId, znodeId);
getAZnodeId();
case StringConstants.SERVICE_TYPE_OTUC2:
case StringConstants.SERVICE_TYPE_OTUC3:
case StringConstants.SERVICE_TYPE_OTUC4:
- LOG.info("readMdSal: network {}", NetworkUtils.OVERLAY_NETWORK_ID);
+ LOG.debug("readMdSal: network {}", NetworkUtils.OVERLAY_NETWORK_ID);
nwInstanceIdentifier = InstanceIdentifier.builder(Networks.class)
.child(Network.class, new NetworkKey(new NetworkId(NetworkUtils.OVERLAY_NETWORK_ID))).build();
break;
case StringConstants.SERVICE_TYPE_ODUC4:
case StringConstants.SERVICE_TYPE_10GE:
case StringConstants.SERVICE_TYPE_1GE:
- LOG.info("readMdSal: network {}", NetworkUtils.OTN_NETWORK_ID);
+ LOG.debug("readMdSal: network {}", NetworkUtils.OTN_NETWORK_ID);
nwInstanceIdentifier = InstanceIdentifier.builder(Networks.class)
.child(Network.class, new NetworkKey(new NetworkId(NetworkUtils.OTN_NETWORK_ID))).build();
break;
}
private boolean validateLink(Link link) {
- LOG.info("validateLink: link {} ", link);
+ LOG.debug("validateLink: link {} ", link);
NodeId sourceId = link.getSource().getSourceNode();
NodeId destId = link.getDestination().getDestNode();
}
private void validateNode(Node node) {
- LOG.info("validateNode: node {} ", node);
+ LOG.debug("validateNode: node {} ", node);
// PceNode will be used in Graph algorithm
Node1 node1 = node.augmentation(Node1.class);
if (node1 == null) {
deviceNodeId = node.getNodeId().getValue();
}
- LOG.info("Device node id {} for {}", deviceNodeId, node);
+ LOG.debug("Device node id {} for {}", deviceNodeId, node);
PceOpticalNode pceNode = new PceOpticalNode(deviceNodeId, this.serviceType, portMapping, node, nodeType,
mappingUtils.getOpenRoadmVersion(deviceNodeId), getSlotWidthGranularity(deviceNodeId, node.getNodeId()),
getCentralFreqGranularity(deviceNodeId, node.getNodeId()));
pceNode.initFrequenciesBitSet();
if (!pceNode.isValid()) {
- LOG.warn(" validateNode: Node is ignored");
+ LOG.debug(" validateNode: Node {} is ignored", node.getNodeId().getValue());
return;
}
if (validateNodeConstraints(pceNode).equals(ConstraintTypes.HARD_EXCLUDE)) {
return ConstraintTypes.NONE;
}
if (pceHardConstraints.getExcludeSupNodes().contains(pcenode.getSupNetworkNodeId())) {
- LOG.info("validateNodeConstraints: {}", pcenode.getNodeId().getValue());
+ LOG.debug("validateNodeConstraints: {}", pcenode.getNodeId().getValue());
return ConstraintTypes.HARD_EXCLUDE;
}
if (pceHardConstraints.getExcludeCLLI().contains(pcenode.getSupClliNodeId())) {
- LOG.info("validateNodeConstraints: {}", pcenode.getNodeId().getValue());
+ LOG.debug("validateNodeConstraints: {}", pcenode.getNodeId().getValue());
return ConstraintTypes.HARD_EXCLUDE;
}
return ConstraintTypes.NONE;
List<Long> constraints = new ArrayList<>(pceHardConstraints.getExcludeSRLG());
constraints.retainAll(link.getsrlgList());
if (!constraints.isEmpty()) {
- LOG.info("validateLinkConstraints: {}", link.getLinkId().getValue());
+ LOG.debug("validateLinkConstraints: {}", link.getLinkId().getValue());
return ConstraintTypes.HARD_EXCLUDE;
}
pceNode.initXndrTps(input.getServiceAEnd().getServiceFormat());
break;
default:
- LOG.warn("endPceNode: Node {} is not SRG or XPONDER !", nodeId);
+ LOG.debug("endPceNode: Node {} is not SRG or XPONDER !", nodeId);
return false;
}
}
allPceLinks.put(linkId, pceOtnLink);
source.addOutgoingLink(pceOtnLink);
- LOG.info("validateLink: OTN-LINK added to allPceLinks {}", pceOtnLink);
+ LOG.debug("validateLink: OTN-LINK added to allPceLinks {}", pceOtnLink);
break;
default:
LOG.warn("validateLink: link type is not supported {}", pceOtnLink);
private static void printNodesInfo(Map<NodeId, PceNode> allPceNodes) {
allPceNodes.forEach(((nodeId, pceNode) -> {
- LOG.info("In printNodes in node {} : outgoing links {} ", pceNode.getNodeId().getValue(),
+ LOG.debug("In printNodes in node {} : outgoing links {} ", pceNode.getNodeId().getValue(),
pceNode.getOutgoingLinks());
}));
}