summaryrefslogtreecommitdiffstats
path: root/components/scripts/python/ccsdk_netconf
diff options
context:
space:
mode:
Diffstat (limited to 'components/scripts/python/ccsdk_netconf')
-rw-r--r--components/scripts/python/ccsdk_netconf/common.py1
-rw-r--r--components/scripts/python/ccsdk_netconf/netconf_constant.py2
-rw-r--r--components/scripts/python/ccsdk_netconf/netconfclient.py6
3 files changed, 7 insertions, 2 deletions
diff --git a/components/scripts/python/ccsdk_netconf/common.py b/components/scripts/python/ccsdk_netconf/common.py
index f7ac1ac35..66c7a98b5 100644
--- a/components/scripts/python/ccsdk_netconf/common.py
+++ b/components/scripts/python/ccsdk_netconf/common.py
@@ -26,3 +26,4 @@ class ResolutionHelper:
def retrieve_resolved_template_from_database(self, key, artifact_template):
return ResourceResolutionExtensionsKt.storedContentFromResolvedArtifact(self.component_function, key,
artifact_template)
+
diff --git a/components/scripts/python/ccsdk_netconf/netconf_constant.py b/components/scripts/python/ccsdk_netconf/netconf_constant.py
index 534ca9e13..52ac0ae5a 100644
--- a/components/scripts/python/ccsdk_netconf/netconf_constant.py
+++ b/components/scripts/python/ccsdk_netconf/netconf_constant.py
@@ -8,6 +8,8 @@ PARAM_ACTION = "action"
STATUS_SUCCESS = "success"
STATUS_FAILURE = "failure"
+ATTRIBUTE_RESPONSE_DATA = "response-data"
+
CONFIG_TARGET_RUNNING = "running"
CONFIG_TARGET_CANDIDATE = "candidate"
CONFIG_DEFAULT_OPERATION_MERGE = "merge"
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)