Fix augmentation pointing to a grouping action's input 03/88103/10
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 12:53:47 +0000 (13:53 +0100)
commit49d03d3ce5f88c87a54e38f859fbbf5c316c3862
tree978f2bd91ae76d63eca8334ba6f578092abe49e6
parentc4be6e2b36f683a8c31380a61990ecc23d54c227
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]