}
String vnfcFunctionCode = getVnfcFunctionCodeForVserver(ctx, vServerId);
+ if (StringUtils.isBlank(vnfcFunctionCode)) {
+ log.info("processCapabilitiesForVMLevel() :: vnfcFunctionCode is not present in context!!!");
+ ctx.setAttribute("capabilities", "Not-Supported");
+ return;
+ }
+
if (vmCaps.toString().contains(vnfcFunctionCode))
ctx.setAttribute("capabilities", "Supported");
else
}
private String getVnfcFunctionCodeForVserver(SvcLogicContext ctx, String vServerId) throws Exception {
- log.debug("getVnfcFunctionCodeForVserver()::vServerId=" + vServerId);
+ log.info("getVnfcFunctionCodeForVserver()::vServerId=" + vServerId);
+ for (Object key : ctx.getAttributeKeySet()) {
+ String parmName = (String) key;
+ String parmValue = ctx.getAttribute(parmName);
+ log.info(parmName + "=" + parmValue);
+
+ }
String vnfcFunctionCode = ctx.getAttribute("tmp.vnfInfo.vm.vnfc.vnfc-function-code");
- log.debug("getVnfcFunctionCodeForVserver()::vnfcFunctionCode=" + vnfcFunctionCode);
+ log.info("getVnfcFunctionCodeForVserver()::vnfcFunctionCode=" + vnfcFunctionCode);
return vnfcFunctionCode;
}