From: Alexis de Talhouët Date: Tue, 19 Feb 2019 15:02:00 +0000 (-0500) Subject: Add support for commit confirmed capability X-Git-Tag: 0.4.2~163^2~23 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=18e18571bd0d5e7e58359ce35c315c5b2e341ae6;p=ccsdk%2Fcds.git Add support for commit confirmed capability Change-Id: I3608a6a62469d4b5dfc5fc69f610f9da186156c2 Issue-ID: CCSDK-790 Signed-off-by: Alexis de Talhouët --- diff --git a/components/scripts/python/ccsdk_netconf/netconfclient.py b/components/scripts/python/ccsdk_netconf/netconfclient.py index dd7d2dc22..d898ec009 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):