Fix nested YANG 1.1 Action invocation 25/90225/5
authorajay_dp001 <ajay.deep.singh@est.tech>
Wed, 3 Jun 2020 04:27:28 +0000 (09:57 +0530)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Jun 2020 08:32:40 +0000 (10:32 +0200)
commit8b9206c7b36b7f7ebfadf23e1be00d43a0bd9573
treedbdb0ead594214d306c88fdaee0cba2af9eaa5d2
parent092c28f36f848e87d491a71bf909c47cfafb0e21
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