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

Instantiate EffectiveRevisionDate statements on linkage

    XMLWordPrintable

Details

    • Improvement
    • Status: Confirmed
    • Low
    • Resolution: Unresolved
    • None
    • 14.0.0
    • parser

    Description

      Our parser does not reflect the result of inter-module linkage (via import) into the effective model. This means users trying to cross-reference EffectiveModuleStatements need to perform their own re-linkage because they have no way of finding out how a particular import was resolved.

      Improve parser so that for a revisionless import:

      module foo {
        import bar {
          prefix bar;
        }
      }

      we introduce an undeclared EffectiveRevisionDate statement which reflects the revision of the imported module. i.e. when linked with:

      module bar {
        revision 2010-11-12;
      }

      the effective model of foo looks as if it was declared: 

      module foo {
        import bar {
          prefix bar;
          revision-date 2010-11-12;
        }
      }
      

       

      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: