Fix GENERIC-RESOURCE-API yang model
[sdnc/northbound.git] / generic-resource-api / provider / src / main / java / org / onap / sdnc / northbound / GenericResourceApiSvcLogicServiceClient.java
index 8ba70de..b000ed4 100644 (file)
@@ -1,5 +1,5 @@
 /*-
- * ============LICENSE_START=======================================================
+z * ============LICENSE_START=======================================================
  * openECOMP : SDN-C
  * ================================================================================
  * Copyright (C) 2017 AT&T Intellectual Property. All rights
@@ -106,6 +106,21 @@ public class GenericResourceApiSvcLogicServiceClient {
         return respProps;
     }
 
+       public Properties execute(String module, String rpc, String version, String mode, Properties properties)
+                       throws SvcLogicException {
+
+               printPropsDebugLogs(properties, "Parameters passed to SLI");
+
+               Properties respProps = svcLogic.execute(module, rpc, version, mode, properties);
+               printPropsDebugLogs(respProps, "Parameters returned by SLI");
+               if (respProps == null || FAILURE_RESULT.equalsIgnoreCase(respProps.getProperty(SVC_LOGIC_STATUS_KEY))) {
+                       return (respProps);
+               }
+
+               return respProps;
+       }
+
+
     private void printPropsDebugLogs(Properties properties, String msg) {
         if (!LOG.isDebugEnabled()) {
             return;