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

Copy only SchemaTreeEffectiveStatements in UsesStatementSupport

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 5.0.0
    • None
    • parser
    • None

      RFC7950 provides explicit guidance as to what statements should be included and which not. Specifically, it says:

      The effect of a "uses" reference to a grouping is that the nodes defined by the grouping are copied into the current schema tree and are then updated according to the "refine" and "augment" statements.
      

      Which is to say that only SchemaTreeEffectiveStatements are to be copied – any other statement cannot be added to the schema tree, hence there is just no point in copying of it.

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

              Created:
              Updated:
              Resolved: