Fix enumeration leafref lookup 26/74626/13
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 30 Jul 2018 07:40:05 +0000 (09:40 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 9 Aug 2018 17:17:32 +0000 (17:17 +0000)
commit6e6a3ea2c895e31da3a74da26fb0462095594cb1
treedeb7cbb76a06106b292dc85fe78c8215b04a10dd
parent9c98151c1742739f1ca914931d80245f26824fa6
Fix enumeration leafref lookup

Leafref lookup for straight uses of enumeration typedefs seems
to be failing. The code in question seems to rely on weird assumptions,
hence this patch places a FIXME and turns an alternative branch
into a fallback if the weird code fails to find a definition.

This also activates ietf-hardware models.

JIRA: MDSAL-352
Change-Id: I6d342c7418c1538ee928f85b33f8f58da8aca5c6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/yang/types/AbstractTypeProvider.java
binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/mdsal/binding/generator/impl/Mdsal352Test.java [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/resources/mdsal352.yang [new file with mode: 0644]
model/ietf/rfc8348-ietf-hardware-state/src/main/yang/ietf-hardware-state@2018-03-13.yang [moved from model/ietf/rfc8348-ietf-hardware-state/src/main/yang-disabled/ietf-hardware-state@2018-03-13.yang with 100% similarity]
model/ietf/rfc8348-ietf-hardware/src/main/yang/ietf-hardware@2018-03-13.yang [moved from model/ietf/rfc8348-ietf-hardware/src/main/yang-disabled/ietf-hardware@2018-03-13.yang with 100% similarity]