Add correct status code to YangPatch 02/108902/2
authorPeter Suna <peter.suna@pantheon.tech>
Tue, 7 Nov 2023 16:17:36 +0000 (17:17 +0100)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Fri, 10 Nov 2023 09:36:23 +0000 (09:36 +0000)
commitc7190c8cced3b56410e6cf57d637be1accd2c1d0
tree6b851880bc18f2eed57c5fa2cc6f604d2b947e68
parent81c4baf00aa0dce3e504099973e42968c15500c8
Add correct status code to YangPatch

Set the status code based on the first global error
or the first error in the PatchStatusEntity.

JIRA: NETCONF-1103
Change-Id: Ica4e503226e9323e02efc51cf28e07868177154d
(cherry picked from commit 3a131d1ebe983754661b6ca1889e61f677998c2e)
Signed-off-by: Peter Suna <peter.suna@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImplTest.java