summaryrefslogtreecommitdiffstats
path: root/components/scripts/python/ccsdk_restconf
diff options
context:
space:
mode:
authorSteve Siani <steve.djissitchi@bell.ca>2019-08-15 21:42:50 -0400
committerSteve Siani <alphonse.steve.siani.djissitchi@ibm.com>2019-08-15 23:36:57 -0400
commit19dfd637dd3888b2f986d9e3543c34ff7dc6b4aa (patch)
treeecfa4987d661b457c1c8bb140cf1430f654f551f /components/scripts/python/ccsdk_restconf
parent4b3600fe90275fa0f3f02bcb48956f487bba25f2 (diff)
Wrapper functions for placing output responseData and Status
Issue-ID: CCSDK-1625 Change-Id: I80e6c0d8f04df3a05d9bfc230addda5f0501b1b1 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com>
Diffstat (limited to 'components/scripts/python/ccsdk_restconf')
-rw-r--r--components/scripts/python/ccsdk_restconf/restconf_client.py4
-rw-r--r--components/scripts/python/ccsdk_restconf/restconf_constant.py1
2 files changed, 5 insertions, 0 deletions
diff --git a/components/scripts/python/ccsdk_restconf/restconf_client.py b/components/scripts/python/ccsdk_restconf/restconf_client.py
index 927c1fedd..6e53dcf93 100644
--- a/components/scripts/python/ccsdk_restconf/restconf_client.py
+++ b/components/scripts/python/ccsdk_restconf/restconf_client.py
@@ -18,6 +18,7 @@
# ============LICENSE_END=========================================================
#
from time import sleep
+from restconf_constant import *
from org.onap.ccsdk.cds.blueprintsprocessor.functions.restconf.executor import RestconfExecutorExtensionsKt
from org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution import ResourceResolutionExtensionsKt
@@ -92,3 +93,6 @@ class RestconfClient:
url = self.__base_odl_url + nf_id
self.__log.debug("sending unmount request, url: {}", url)
web_client_service.exchangeResource("DELETE", url, "")
+
+ def set_execution_attribute_response_data(self, response_data):
+ self.setAttribute(ATTRIBUTE_RESPONSE_DATA, response_data)
diff --git a/components/scripts/python/ccsdk_restconf/restconf_constant.py b/components/scripts/python/ccsdk_restconf/restconf_constant.py
new file mode 100644
index 000000000..2e1c58312
--- /dev/null
+++ b/components/scripts/python/ccsdk_restconf/restconf_constant.py
@@ -0,0 +1 @@
+ATTRIBUTE_RESPONSE_DATA = "response-data" \ No newline at end of file