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

can't use key from element defined in inner grouping from list using outer grouping

    XMLWordPrintable

Details

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

    • 4330

    Description

      If I have something like this:

      grouping inner {
      leaf myKey;
      leaf fieldAbc;
      }

      grouping outer {
      uses inner;
      }

      list myList {
      key "myKey";
      uses outer;
      }

      It fails with error on key "myKey". Problem encountered in: https://git.opendaylight.org/gerrit/#/c/24078/5/hwvtepsouthbound/hwvtepsouthbound-api/src/main/yang/hwvtep.yang Check code form Line 56-90 and then 137 to 151.

      For now workaround would be to use both the groupings directly in code 137 to 151. Refer fix at: https://gist.github.com/vishnoianil/d5fd0a8967791ff2aa0c

      Attachments

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

        Activity

          People

            pkajsa Peter Kajsa
            thapar Vishal Thapar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: