Fix action/grouping lookup mechanics 93/88093/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 27 Feb 2020 09:38:33 +0000 (10:38 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 27 Feb 2020 14:24:03 +0000 (15:24 +0100)
commited45870f6415138a7b11cbedf1dcff8bdd442e38
tree57fc6b64dc592e679f3168fb1982ef9b6c3999f4
parent4589b1c99f6a35e980af42885bcdbabcfd3503a5
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]