Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-113

Java Binding: groupings should not share classes with their instantiations

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • None
    • 4.0.0, Fluorine SR3, 3.0.7
    • Binding codegen
    • None
    • Operating System: All
      Platform: All

    • 4625

    Description

      Sharing classes between things encapsulated in a grouping fails on perfectly valid models which define leafrefs to instances known only at instantiation.

      A typical example is https://github.com/openconfig/public/blob/master/release/models/bgp/openconfig-bgp.yang#L588, which is valid, but since the resulting target is not known within the grouping itself, DTO generation fails.

      Resolving this problem clearly requires two interfaces being generated 'list neighbor': one for the grouping version, which will be just a DataObject (as nothing else is known about it) and a second one for the final instantiation place, where the type is already known to be inet:address.

      Attachments

        Issue Links

          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: