[NETCONF-427] Adding element to user ordered list fails Created: 30/May/17 Updated: 15/Mar/19 Resolved: 05/Jun/17 |
|
| Status: | Resolved |
| Project: | netconf |
| Component/s: | netconf |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Marek Gradzki | Assignee: | Tomas Cere |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 8566 |
| Description |
|
While adding ACE to ACL (user ordered list) trough netconf <edit-config> we got: java.lang.IllegalArgumentException: Node ImmutableMapNode {nodeIdentifier=(urn:ietf:params:xml:ns:yang:ietf-access-control-list?revision=2016-07-08)ace, value=[]} is not of type interface org.opendaylight.yangtools.yang.data.api.schema.OrderedMapNode If we change ordering to system everything works. Issue was observed using Boron-SR3. Honeycomb LOG attached. Instructions to reproduce available at https://gerrit.fd.io/r/#/c/6910. |
| Comments |
| Comment by Marek Gradzki [ 30/May/17 ] |
|
Attachment hc_log.txt has been added with description: Honeycomb log |
| Comment by Peter Kajsa [ 30/May/17 ] |
|
When a list is "ordered-by user" it is necessary to write ImmutableOrderedMapNode instead of ImmutableMapNode into InMemoryDataTree. However, there is an attempt to write ImmutableMapNode and therefore this write fails in Yangtools when the list "ace" is "ordered-by user". |
| Comment by Marek Gradzki [ 01/Jun/17 ] |
|
https://git.opendaylight.org/gerrit/#/c/58041/1 |