Fix augmentation pointing to a grouping action's input 28/88128/2
authormiroslav.kovac <miroslav.kovac@pantheon.tech>
Thu, 27 Feb 2020 16:51:37 +0000 (17:51 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 28 Feb 2020 15:08:36 +0000 (16:08 +0100)
commit9ab6fa0732bb152e682249dffe7cf940f79e66c5
treee502eafa159a4cd7c6f393531ef26bd86df47ae8
parent45650f19eb0ceb1f5f5a6eed4f8beab1e364c8cf
Fix augmentation pointing to a grouping action's input

When augmentation targets an action input which itself is defined
in a grouping, we need to actually lookup the original definition.

Add a type aliasing information, which should be consulted when
making a simple reference to a type -- and use it in
augmentationToGenTypes().

JIRA: MDSAL-517
Change-Id: I1ef383e8777a7c09a979cbdd84f71be3a0f9b021
Signed-off-by: miroslav.kovac <miroslav.kovac@pantheon.tech>
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/main/java/org/opendaylight/mdsal/binding/generator/impl/ModuleContext.java
binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/mdsal/binding/generator/impl/Mdsal517Test.java [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/resources/mdsal-517/bar.yang [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/resources/mdsal-517/foo.yang [new file with mode: 0644]