Convert leaf statement to instantiatedPolicy() 33/94833/7
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Jan 2021 08:37:21 +0000 (09:37 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Jan 2021 13:13:09 +0000 (14:13 +0100)
commit5a33f604d1ee2c08818243b66923d8352eae4ce2
tree9be766a58e880da41ccd5a79f84aa1024219d648
parent308b782f069286aa886fa7dfa175aa8bdf6baede
Convert leaf statement to instantiatedPolicy()

Leaf statements are not doing anything out of the ordinary, just
the routine instantiated schema three thing. Switch their policy
and add a unit test.

JIRA: YANGTOOLS-1208
Change-Id: I5e38765e76cf8be422f05e6b779ffd54519d6b61
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/leaf/LeafStatementSupport.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/YT1208Test.java [new file with mode: 0644]
yang/yang-parser-rfc7950/src/test/resources/bugs/YT1208/leaf.yang [new file with mode: 0644]