Fix action/grouping lookup mechanics 91/88091/7
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 27 Feb 2020 09:38:33 +0000 (10:38 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 27 Feb 2020 20:01:57 +0000 (20:01 +0000)
commitd1aaa06ff246011bd13a8fa4292770f7e8c635bf
treea4a0e2131912eb8f5996ceddcbc1dec6b05c2932
parentc4cb94c40f54341106d0f00e8719d289bea17ab8
Fix action/grouping lookup mechanics

When we are following references towards the original definitions
we need to mind the fact that 'uses' statement may point to a grouping
in a different module and hence we need to adjust namespace accordingly.

The same thing applies when we want to find generated types for such
actions' input/output -- here we need to acquire the correct
ModuleContext.

JIRA: MDSAL-516
Change-Id: I1931279beb8e663e6d8558d50c5d7d274e248cf3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/generator/impl/AbstractTypeGenerator.java
binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/mdsal/binding/generator/impl/Mdsal516Test.java [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/resources/mdsal-516/bar.yang [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/resources/mdsal-516/foo.yang [new file with mode: 0644]