Fix Nested YANG 1.1 Action invocation 68/91068/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:36:12 +0000 (20:36 +0000)
commit40fcd10098a68ea8a8acf1b020252ccb2e0b9f9c
tree7052ba178f249d91097c2695eced5a7f3cc9e547
parent7d79923bd5d06421d059493424111393e046e980
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