Restore augmentation sorting semantics 54/96554/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Jun 2021 15:53:06 +0000 (17:53 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Jun 2021 16:24:28 +0000 (18:24 +0200)
commit9bd6c7f90870d8a1493ae5cdc3f33db959a139fe
tree14762e8a54b417b13c7047e631f9715989c272fa
parentfe718c52eff07a95a83bd28b26828bf847f7c52e
Restore augmentation sorting semantics

Augmentation sort we are performing to order augmentations has another,
undocumented, impact. It provides stability of generated code towards
reformats of the YANG source, so that changing the order of augment
statements (by itself) does not change the naming of generated fields.

The simple comparator failed to take this effect, leading to an
incompatible change of assignments which is extremely hard to untangle.
Fix this by restoring previous sorting behaviour.

Change-Id: I7164e6e06d47fcded3261752a8a0f587afc70274
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/AbstractAugmentGenerator.java