Fix nested YANG 1.1 Action invocation 61/90261/1
authorajay_dp001 <ajay.deep.singh@est.tech>
Wed, 3 Jun 2020 04:27:28 +0000 (09:57 +0530)
committerRobert Varga <nite@hq.sk>
Tue, 9 Jun 2020 08:36:41 +0000 (08:36 +0000)
commit126f12f7a2f64d88060f6d55e3c738e5d891deed
tree93d0ebed532530be7d9cb53f19c72f83f9ce44bf
parent75c0588b82b14e674328f466ccb6d8929bafa579
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
Change-Id: I7b03b2b1ebdd7bffbfab5291552c430700ff2850
Signed-off-by: ajay_dp001 <ajay.deep.singh@est.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
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