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

To fix the package name for recursively uses augment.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 8542

    Description

      For recursively uses augment as shown below:
      ...
      grouping D{
      uses "grp:A" {
      augment "A1/A1-inner" {
      leaf D-aug-A1

      { type string; }

      uses B {
      augment "B1/B1-inner" {
      leaf D-aug-B1-inner

      { type string; }

      uses C {
      augment "C1/C1-inner" {
      leaf D-aug-C1-inner

      { type string; }

      }
      }
      }

      }

      }
      }
      }
      ...

      the package name for 'B1-inner' or 'C1-inner' was set to module's root package name. It is neccessary to eliminate the repeated call of processUsesAugments in augmentationToGenTypes that would generate double classes with ascending indexes for the same augment node, as well as to get package name from parent type builer to generate package name for sub augment nodes.

      A patch has been committed:
      https://git.opendaylight.org/gerrit/#/c/57746/

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            han.jie@zte.com.cn Jie Han
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: