diff options
author | 2019-02-22 18:53:28 +0000 | |
---|---|---|
committer | 2019-02-22 18:53:28 +0000 | |
commit | 012837ac49359912c55d8ba88d336a3c8622ed08 (patch) | |
tree | b1d596e70603f519e1f2b9e87546ebc93e0d3933 /components | |
parent | 5ce12a24482427f09cfdfc580fb4b59a6d86f5c2 (diff) | |
parent | ba35723f0d0022489074b8ac4b6c68d2fd4ecebf (diff) |
Merge "Add support for commit confirmed capability"
Diffstat (limited to 'components')
-rw-r--r-- | components/scripts/python/ccsdk_netconf/netconfclient.py | 10 |
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): |