Fix action/grouping lookup mechanics 92/88092/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:23:39 +0000 (15:23 +0100)
commitfdac88806177dfa47a1c9428ea936e817a942372
tree4427b99b24c0e95c18e085d5ce1f630bd1c0fb3d
parent0a75c3b40f053de4c616c20745490ef4b043a09d
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]