Do not send 'commit' to the devices without candidate 68/103268/2
authorSangwook Ha <sangwook.ha@verizon.com>
Fri, 16 Dec 2022 01:06:05 +0000 (17:06 -0800)
committerRobert Varga <nite@hq.sk>
Tue, 3 Jan 2023 10:28:16 +0000 (10:28 +0000)
commitedc3a46c3f63ba74681344d2c5a92d9591b12af1
tree5937a6441efea4c7343b287b11049e0939bbd9f2
parentd1e774911cc58fbea86405843ef505b9867c7535
Do not send 'commit' to the devices without candidate

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>
(cherry picked from commit 3f566e5d24c17abd9643dd854b11d4345231a2e1)
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/AbstractNetconfDataTreeService.java