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

InferenceException thrown when uses/augment is conditional on unsupported feature

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • 6.0.6, 6.0.10
    • 8.0.0, 7.0.14
    • parser
    • None
    • High

    Description

      While parsing the attached yang files, I see the below exception

      Caused by: org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException: Augment target 'Descendant

      {qnames=[(urn:ietf:params:xml:ns*:ietf-netconf-server*?revision=2018-10-22)client-auth]}

      ' not found [at ietf-netconf-server.yang:86:16]

       

      Problem: we have a "augment" statement under "uses", which is failed to validate in 6.0.6 (it was working in 3.0.16).

      uses ts:tls-server-grouping {

                    refine "client-auth" {

                     ...

                     augment "client-auth" {

                     ...

      Here the issue occurs at augment, saying that client-auth is not found in ietf-netconf-server. But, The client-auth container is defined under the grouping in ietf-tls-server.

       

      Note: I have tried adding prefix to client-auth, that is augment "ts:client-auth" {

       

      It is still failing but with different exception - Augment target 'Descendant

      {qnames=[(urn:ietf:params:xml:ns:yang:*ietf-tls-server*?revision=2018-10-22)client-auth]}

      ' not found [at ietf-netconf-server.yang:86:16]

      Attachments

        Issue Links

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

          Activity

            People

              rovarga Robert Varga
              raju.kajulooti Lovaraju Kajulooti
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: