[YANGTOOLS-102] Multiple augmentations fail Created: 17/Mar/14  Updated: 10/Apr/22  Due: 15/Apr/14  Resolved: 06/May/14

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Dana Kutenicsova Assignee: Martin Vitez
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Issue Links:
Blocks
blocks YANGTOOLS-108 Milestone : Bugfixing for Helium Resolved
blocks YANGTOOLS-109 Milestone : Improvements to codec inf... Resolved
External issue ID: 527
Priority: High

 Description   

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.



 Comments   
Comment by Robert Varga [ 28/Mar/14 ]

https://git.opendaylight.org/gerrit/#/c/5751/

Comment by Dana Kutenicsova [ 01/Apr/14 ]

The value field is visible, but multiple augmentations are still a problem.

Generated at Wed Feb 07 20:52:16 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.