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

YANG parser should bind leaf-instantiated leafref paths

    XMLWordPrintable

Details

    • New Feature
    • Status: Confirmed
    • Medium
    • Resolution: Unresolved
    • None
    • 14.0.0
    • parser
    • None

    Description

      Since YANGTOOLS-969 introduced support for parsing leafref path expressions, this support is not complete, as it does not perform binding of unqualified QNames when a leaf is completely instantiated.

      As a first step, we should recognize when we are parsing the argument value in an instantiated-leaf case and perform full binding.

      As the second step, we should hook onto StatementSupport.adaptArgumentValue() and intercept the case when leaves from groupings are landing in their final instantiation. This may require some trickery, as type statements are reused when they are copied.

      The third step, which is probably related to the second one, is how to validate typedef references when they are used in leaves.

      Finally we need to define how binding relates to LeafrefTypeDefinition, as currently we do not have an avenue how to update an the path expression and our users are doing dirty tricks to parse them out.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: