From 6dec3fb775386767a7b4008b0862e6a32247bb97 Mon Sep 17 00:00:00 2001 From: Steve Siani Date: Tue, 27 Aug 2019 14:58:30 -0400 Subject: Add Get function in Netconf execution service for operational commands Issue-ID: CCSDK-1657 Signed-off-by: Steve Siani Change-Id: I12b82a7f1233fce256190ec0d35a5b85ad937b7b --- components/scripts/python/ccsdk_netconf/netconfclient.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'components/scripts') 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) -- cgit 1.2.3-korg