/** * Delete a ServiceFunctionType based on SftType (key) */ public static boolean deleteServiceFunctionType(SftTypeName sftType) { ServiceFunctionType serviceFunctionType = readServiceFunctionType(sftType); if (serviceFunctionType != null) { return deleteServiceFunctionType(serviceFunctionType); } LOG.warn("deleteServiceFunctionType: Could not find ServiceFunctionType for {}", sftType); return false; }
serviceFunctionType = SfcProviderServiceTypeAPI.readServiceFunctionType(sfcServiceFunction.getType()); if (serviceFunctionType != null) { List<SftServiceFunctionName> sftServiceFunctionNameList =
ServiceFunction createdServiceFunction = (ServiceFunction) entry.getValue(); if (!SfcProviderServiceTypeAPI.createServiceFunctionTypeEntry(createdServiceFunction)) { LOG.error("Failed to create service function type: {}", createdServiceFunction.getType()); ServiceFunction originalServiceFunction = (ServiceFunction) dataObject; if (!SfcProviderServiceTypeAPI.deleteServiceFunctionTypeEntry(originalServiceFunction)) { LOG.error("Failed to delete Service Function Type for SF: {}", originalServiceFunction.getName()); SfcProviderServiceTypeAPI.deleteServiceFunctionTypeEntry(originalServiceFunction); SfcProviderServiceTypeAPI.createServiceFunctionTypeEntry(updatedServiceFunction);
serviceFunctionType = SfcProviderServiceTypeAPI.readServiceFunctionType(sfcServiceFunction.getType()); if (serviceFunctionType != null) { List<SftServiceFunctionName> sftServiceFunctionNameList =
serviceFunctionType = SfcProviderServiceTypeAPI.readServiceFunctionType(sfcServiceFunction.getType()); if (serviceFunctionType != null) { List<SftServiceFunctionName> sftServiceFunctionNameList =
readServiceFunctionType(serviceFunction.getType()).getSftServiceFunctionName(); if (sftServiceFunctionNameList != null) { LOG.debug("List size for service type {} is: {}", serviceFunction.getType(), sftServiceFunctionNameList.size()); if (sftServiceFunctionNameList.size() == 0) { deleteServiceFunctionType(serviceFunction.getType());
SfcProviderServiceTypeAPI.readServiceFunctionType(sfcServiceFunction.getType()); if (serviceFunctionType != null) { List<SftServiceFunctionName> sftServiceFunctionNameList =
SfcProviderServiceTypeAPI.readServiceFunctionType(new SftTypeName(type)).getType(); if (sfType == null) { LOG.error("Invalid SF type {}", type);
serviceFunctionType = SfcProviderServiceTypeAPI.readServiceFunctionType(serviceFunctionTypeList.get(i)); serviceTypeName = serviceFunctionType.getType().getValue(); if (serviceTypeName == null) {