[YANGTOOLS-510] ListItem nodes can't be wroten successfully in local rib Created: 24/Sep/15  Updated: 10/Apr/22  Resolved: 13/Oct/15

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

Type: Bug
Reporter: Zhao Guo Assignee: Tony Tkacik
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: Text File FS s novym s extComm.log    
Issue Links:
Blocks
blocks BGPCEP-270 Flowspec route yang model bug Resolved
External issue ID: 4349

 Comments   
Comment by Zhao Guo [ 24/Sep/15 ]

org.opendaylight.yangtools.yang.data.impl.schema.ImmutableNormalizedNodeStreamWriter:

public void startUnkeyedListItem(final NodeIdentifier name, final int childSizeHint) {
Preconditions.checkArgument(getCurrent() instanceof ImmutableUnkeyedListNodeBuilder);

final DataContainerNodeAttrBuilder<NodeIdentifier, UnkeyedListEntryNode> builder = UNKNOWN_SIZE == childSizeHint ?
ImmutableUnkeyedListEntryNodeBuilder.create() : ImmutableUnkeyedListEntryNodeBuilder.create(childSizeHint);
enter(builder.withNodeIdentifier(name));

If yang file defines a group which contains child nodes as "listitem" type, like the following nodes "communities", "extended-communities" etc, the precondition "Preconditions.checkArgument(getCurrent() instanceof ImmutableUnkeyedListNodeBuilder)" will always fail and throws exception.

grouping path-attributes {
reference "http://tools.ietf.org/html/rfc4271#section-5";
container origin {
reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
leaf value

{ type bgp-t:bgp-origin; mandatory true; }

}
container as-path {
reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
list segments

{ uses bgp-t:as-path-segment; }

}
uses bgp-t:next-hop;
container multi-exit-disc {
reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
leaf med

{ type uint32; }
}
container local-pref {
reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
leaf pref { type uint32; }

}
container atomic-aggregate

{ reference "http://tools.ietf.org/html/rfc4271#section-5.1.6"; presence "Atomic Aggregate attribute is present."; }

container aggregator

{ uses bgp-t:bgp-aggregator; }

list communities

{ uses bgp-t:community; }

list extended-communities

{ uses bgp-t:extended-community; }

container originator-id

{ uses originator-id; }

container cluster-id

{ uses cluster-id; }

}

Comment by Robert Varga [ 24/Sep/15 ]

What release train has this been observed with?

Comment by Zhao Guo [ 25/Sep/15 ]

(In reply to Robert Varga from comment #2)
> What release train has this been observed with?

lithum and lithum-sr1

Comment by Iveta Halanova [ 12/Oct/15 ]

also with master

Comment by Martin Ciglan [ 12/Oct/15 ]

Hello

Could you please add error stack trace. Many thanks.

Comment by Iveta Halanova [ 13/Oct/15 ]

search: 2015-10-05 11:06:55,830

Comment by Iveta Halanova [ 13/Oct/15 ]

Attachment FS s novym s extComm.log has been added with description: sending flowspec-route with ext.comms

Comment by Tony Tkacik [ 13/Oct/15 ]

Beryllium: https://git.opendaylight.org/gerrit/28316

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