Fix augmented action code generation 87/82887/2
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:20 +0000 (15:21 +0200)
commitdee452d009946a175273ac2a21dca4174b2142af
tree999e6988d7634fef0a2add2b2dee4ec8ff70045e
parent30952238d240260310d357c2e80be55021ccb1fc
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>
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]