aboutsummaryrefslogtreecommitdiffstats
path: root/components/scripts/python
diff options
context:
space:
mode:
authorAlexis de Talhouët <adetalhouet89@gmail.com>2019-02-19 10:02:00 -0500
committerAlexis de Talhouët <adetalhouet89@gmail.com>2019-02-20 21:02:16 +0000
commitba35723f0d0022489074b8ac4b6c68d2fd4ecebf (patch)
tree1c04adc11625aa1128e06e3b82012ef5d8b49808 /components/scripts/python
parent854cabcebee6d42a241700b4dcd66878440c2849 (diff)
Add support for commit confirmed capability
Change-Id: I3608a6a62469d4b5dfc5fc69f610f9da186156c2 Issue-ID: CCSDK-790 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Diffstat (limited to 'components/scripts/python')
-rw-r--r--components/scripts/python/ccsdk_netconf/netconfclient.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/components/scripts/python/ccsdk_netconf/netconfclient.py b/components/scripts/python/ccsdk_netconf/netconfclient.py
index dd7d2dc2..d898ec00 100644
--- a/components/scripts/python/ccsdk_netconf/netconfclient.py
+++ b/components/scripts/python/ccsdk_netconf/netconfclient.py
@@ -35,8 +35,14 @@ class NetconfClient:
edit_default_peration)
return device_response
- def commit(self):
- device_response = self.netconf_rpc_client.commit()
+ def commit(self, confirmed=False, confirm_timeout=60, persist="",
+ persist_id=""):
+ device_response = self.netconf_rpc_client.commit(confirmed, confirm_timeout,
+ persist, persist_id)
+ return device_response
+
+ def cancel_commit(self, persist_id=""):
+ device_response = self.netconf_rpc_client.cancelCommit(persist_id)
return device_response
def unlock(self, config_target=CONFIG_TARGET_CANDIDATE):