aboutsummaryrefslogtreecommitdiffstats
path: root/components/scripts
diff options
context:
space:
mode:
authorSteve Siani <alphonse.steve.siani.djissitchi@ibm.com>2019-08-27 14:58:30 -0400
committerSteve Siani <alphonse.steve.siani.djissitchi@ibm.com>2019-08-27 14:58:30 -0400
commit6dec3fb775386767a7b4008b0862e6a32247bb97 (patch)
treed3e2607e7083e53283d6eca28c082a3b431926af /components/scripts
parent54426584a02e6fbfec5f7685c92e1a3fde62309f (diff)
Add Get function in Netconf execution service for operational commands
Issue-ID: CCSDK-1657 Signed-off-by: Steve Siani <alphonse.steve.siani.djissitchi@ibm.com> Change-Id: I12b82a7f1233fce256190ec0d35a5b85ad937b7b
Diffstat (limited to 'components/scripts')
-rw-r--r--components/scripts/python/ccsdk_netconf/netconfclient.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/scripts/python/ccsdk_netconf/netconfclient.py b/components/scripts/python/ccsdk_netconf/netconfclient.py
index b3aef11f4..97f730081 100644
--- a/components/scripts/python/ccsdk_netconf/netconfclient.py
+++ b/components/scripts/python/ccsdk_netconf/netconfclient.py
@@ -62,3 +62,10 @@ class NetconfClient:
def set_execution_attribute_response_data(self, response_data):
self.setAttribute(ATTRIBUTE_RESPONSE_DATA, response_data)
+
+ def get(self, filter_content):
+ device_response = self.netconf_rpc_client.get(filter_content)
+ return device_response
+
+ def set_execution_attribute_response_data(self, response_data):
+ self.component_function.setAttribute(ATTRIBUTE_RESPONSE_DATA, response_data)