summaryrefslogtreecommitdiffstats
path: root/components/scripts/python/ccsdk_netconf/netconfclient.py
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_netconf/netconfclient.py
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_netconf/netconfclient.py')
-rw-r--r--components/scripts/python/ccsdk_netconf/netconfclient.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/scripts/python/ccsdk_netconf/netconfclient.py b/components/scripts/python/ccsdk_netconf/netconfclient.py
index a942845b9..b3aef11f4 100644
--- a/components/scripts/python/ccsdk_netconf/netconfclient.py
+++ b/components/scripts/python/ccsdk_netconf/netconfclient.py
@@ -1,5 +1,4 @@
-from netconf_constant import CONFIG_TARGET_RUNNING, CONFIG_TARGET_CANDIDATE, \
- CONFIG_DEFAULT_OPERATION_REPLACE
+from netconf_constant import *
from org.onap.ccsdk.cds.blueprintsprocessor.functions.netconf.executor import NetconfExecutorExtensionsKt
@@ -60,3 +59,6 @@ class NetconfClient:
def discard_change(self):
device_response = self.netconf_rpc_client.discardConfig()
return device_response
+
+ def set_execution_attribute_response_data(self, response_data):
+ self.setAttribute(ATTRIBUTE_RESPONSE_DATA, response_data)