Fix Nested YANG 1.1 Action invocation 67/91067/1
authorajay_dp001 <ajay.deep.singh@est.tech>
Sun, 12 Jul 2020 07:21:17 +0000 (12:51 +0530)
committerJamo Luhrsen <jluhrsen@gmail.com>
Tue, 14 Jul 2020 20:35:59 +0000 (20:35 +0000)
commit9c7ef4cd8d3adc33b4d766597e66d09034ea24a7
tree5d1c30f0a05b2fa39113992aece162cd03e9e0ca
parentbdd71505b92999ea46d6aa683314100439cd8008
Fix Nested YANG 1.1 Action invocation

Invocation of action fails if the action is defined as an augmentation.
As it turns out the logic can be very much simplified by just cutting
the last item from YangInstanceIdentifier, as that points to the parent
(and hence context) of the action.

JIRA: NETCONF-696
Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech>
Change-Id: I1d5cd6f65ae4d040d36de5f24f6d76fe5076991f
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/JsonNormalizedNodeBodyReader.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/utils/RestconfInvokeOperationsUtil.java