Fix action/grouping lookup mechanics 94/88094/2 v3.0.x
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:21 +0000 (15:24 +0100)
commitcd0eff8720d6e0d71648278627aa8dffb1563a78
tree88c00c8097488589bc59b4e8ce2ee354ede7a51e
parent591e1f2b0025972c0bb6623ef4d16b6ca9438d5a
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]