Fix runtime type search 73/105773/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 2 May 2023 11:19:54 +0000 (13:19 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 2 May 2023 13:07:34 +0000 (15:07 +0200)
commit53450b03cee1ad3eb8e065c17729bdd16decd574
tree97ce9d48769e2b0af6816da2e9a0eff74753f497
parent1c228751435dea9182cf19b00b833e8fb56047fc
Fix runtime type search

When searching for children, we should be cognizant of the fact that we
might be looking at an inherited contract -- such as 'output' of an
'action' inherited through 'uses'. Extend the runtime search algorithm
to also look at previous() axis.

JIRA: MDSAL-824
Change-Id: Ic2f57b266825c6121f7bd6156a86112abff4b67a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/CompositeRuntimeTypeBuilder.java
binding/mdsal-binding-generator/src/test/java/org/opendaylight/mdsal/binding/generator/impl/Mdsal824Test.java [new file with mode: 0644]
binding/mdsal-binding-generator/src/test/resources/mdsal824/bar.yang [new file with mode: 0644]
binding/mdsal-binding-generator/src/test/resources/mdsal824/foo.yang [new file with mode: 0644]