Add correct status code to YangPatch 80/108880/4
authorPeter Suna <peter.suna@pantheon.tech>
Tue, 7 Nov 2023 16:17:36 +0000 (17:17 +0100)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Thu, 9 Nov 2023 08:23:27 +0000 (08:23 +0000)
commit3a131d1ebe983754661b6ca1889e61f677998c2e
tree1ae002b4031ceae9e1336b7d3e42da394155921c
parent775b5def44a804dea74de28609792d545782a5ed
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
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