Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-885

SchemaContextUtil.findDataSchemaNode(RevisionAwareXPath) does not work correctly

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • High
    • Resolution: Done
    • 2.0.5
    • 2.0.6
    • 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.

      Attachments

        1. test-model-not-compilable.yang
          1 kB
          Anna Bencúrová
        2. test-model.yang
          1 kB
          Anna Bencúrová
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rovarga Robert Varga
            apuchyova Anna Bencúrová
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: