Do not send 'commit' to the devices without candidate 67/103267/2
authorSangwook Ha <sangwook.ha@verizon.com>
Fri, 16 Dec 2022 01:06:05 +0000 (17:06 -0800)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 3 Jan 2023 10:26:17 +0000 (11:26 +0100)
commit9ee044b7386376e6656e7d6eaadafab1393e000d
treec3d16ef6351fcfab4bc46edbd212d6602194ef55
parentb8ebccede5c6321755bbec6c8c89080da22f5059
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