Fix nested YANG 1.1 Action invocation 62/90262/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:51 +0000 (08:36 +0000)
commitfce007c3bf5ba6a98900646b0c08621c35c415ef
treecaf00477d7b50720b58b5a4977bf20b1773e4a66
parent4a6984171e434f92619ae571f3676d01723aaed2
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