Fix augmented action code generation 90/82890/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 2 Jul 2019 11:49:06 +0000 (13:49 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 2 Jul 2019 13:21:54 +0000 (15:21 +0200)
commitdf985b44524785ba0eff9ade990ab4031c1a6c30
tree668687b113e74f0ce62acca0135c4e0c1be7f811
parent59a2c0435a3f960fb7d11790ec869f1b8b47ae51
Fix augmented action code generation

When an action is introduced as part of an augment statement, we
attempt to generate it in the augmented module, which refuses to
generate its input/output statements, leading to a NPE.

This patch updates codegen to ignore augmenting actions in the
augmented module and process them as part of augmentation.

JIRA: MDSAL-459
Change-Id: Ibd7d7abc5ec1eec6d32ee1885da00a0de69b2445
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit dee452d009946a175273ac2a21dca4174b2142af)
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/Mdsal459Test.java [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/resources/mdsal-459/aug.yang [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/resources/mdsal-459/base.yang [new file with mode: 0644]