Details
-
Bug
-
Status: Resolved
-
High
-
Resolution: Done
-
2.0.5
-
None
-
None
Description
The leafref path should be according RFC 6020:
The syntax for a path argument is a subset of the XPath abbreviated syntax.
XML doesn't contain choice and case entries, so the XPath probably should not contain them also. I am attaching two yang files. One is compilable (test-model.yang
), where are two leafs with leafref type. They have included name of the choice and case in the path string. In the other file (test-model-not-compilable.yang
), leafref path doesn't contain choice and case name and this is not compilable.