GroupingDefinitionDependencySort needs to consider actions 27/82127/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 15 May 2019 12:01:19 +0000 (14:01 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 15 May 2019 15:45:33 +0000 (17:45 +0200)
commit08e471b607ecd432e7e3004992a02f8105f05cec
treee8e0f1c83c1653fee83faa21f0e253b38cae6253
parent434471c8c74f1fd8ce89d987b7fc689f8e513d34
GroupingDefinitionDependencySort needs to consider actions

In order to be able to correctly process actions/notifications
which can refer to other groupings, we must properly sort them
within each module.

To do that, GroupingDefinitionDependencySort must consider
uses nodes within them to properly construct the dependency
graph.

JIRA: MDSAL-448
Change-Id: I627702e39b1ab235b1c77ceaa2717ee03b3b2e39
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 6fca42e6bde88795354a2a2386bc7a6d76aaec47)
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/yang/types/GroupingDefinitionDependencySort.java
binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/mdsal/binding/generator/impl/Mdsal448Test.java [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/mdsal/binding/yang/types/GroupingDefinitionDependencySortTest.java
binding/mdsal-binding-generator-impl/src/test/resources/mdsal448.yang [new file with mode: 0644]