The 'commit' RPC should not be sent to the devices only with
'writable-running' and without 'candidate' capability.
Override the commit method for the 'Running' NetconfDataTreeService
to immediately return a DomRpcResult without any errors.
JIRA: NETCONF-933
Change-Id: Ic0e51135e3ae347213d8ef8dbc03deb282d47af3
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
return RPC_SUCCESS;
}
+ @Override
+ public ListenableFuture<DOMRpcResult> commit() {
+ // No candidate, hence we commit immediately
+ return RPC_SUCCESS;
+ }
+
@Override
ListenableFuture<? extends DOMRpcResult> lockSingle() {
return netconfOps.lockRunning(new NetconfRpcFutureCallback("Lock running", id));