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

Multiple augmentations fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Linux
      Platform: PC

    • 527
    • High

      We have yang model:

      grouping foo {
      uses bar {
      augment "bar/bar2" {
      case a {
      when "../../condition = 9";
      leaf fooValue

      { type uint8; }

      }
      }
      }
      }

      Grouping foo is used in 10 augmentations including (what we tested):

      augment "/topo:update-lsp/topo:input/topo:arguments/topo:lspa/topo:tlvs"

      { uses foo; }

      The output of java objects is following:

      Lspa [_tlvs=
      Tlvs [augmentation=[
      Foo2 [_bar=bar [_condition=Condition [_value=9], augmentation=[]]],
      Foo4 [_bar=bar [_condition=Condition [_value=9], augmentation=[]]],
      Foo10 [_bar=bar [_condition=Condition [_value=9], augmentation=[]]]]],

      So basically the problem is that the fooValue is not shown in (at least toString), second problem is that three instances of Foo were passed instead of one.

            mvitez@cisco.com Martin Vitez
            dkutenicsova Dana Kutenicsova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: