[CONTROLLER-333] Possible overriding list data Created: 17/Apr/14 Updated: 14/Nov/17 Resolved: 18/Jun/14 |
|
| Status: | Verified |
| Project: | controller |
| Component/s: | restconf |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Dana Kutenicsova | Assignee: | Unassigned |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| External issue ID: | 767 |
| Priority: | High |
| Description |
|
code: log output: set to .... ero=Ero [_subobject=[Subobject [_loose=false, _subobjectType=IpPrefixCase [_ipPrefix=IpPrefix [_ipPrefix=IpPrefix [_ipv4Pr restconf reports only last ero prefix: <ero> |
| Comments |
| Comment by Dana Kutenicsova [ 17/Apr/14 ] |
|
Update: this behaviour is noticed only using new data-store: 2014-04-17 04:43:41.709 PDT [nettyThreadgroupModule$NioEventLoopGroupCloseable-6-2] TRACE o.o.c.m.s.d.s.i.InMemoryDOMDataStore - Data Tree is data { } |
| Comment by Vratko Polak [ 03/Jun/14 ] |
|
Hello, this is my first bugzilla comment ever. From: Dana Kutenicsova -X (dkutenic - Pantheon Technologies SRO at Cisco) Seems related to: https://bugs.opendaylight.org/show_bug.cgi?id=767, except this time it's first ERO, that is visible. Not sure if restconf or data-store issue. }},{"subobject":{"loose":false,"ip-prefix": {"ip-prefix":"201.20.160.43/32"}}},{"subobject":{"loose":false,"ip-prefix": {"ip-prefix":"43.43.43.43/32"}}}]}}}' 127.0.0.1:8080/restconf/operations/network-topology-pcep:add-lsp |
| Comment by Tony Tkacik [ 03/Jun/14 ] |
|
Seems to Restconf / Yangtools error, not datastore related. |
| Comment by Jozef Gloncak [ 16/Jun/14 ] |
|
I tried to do test case with list without keys but for me everything worked OK. I passed through YANG model and in pcep-types.yang I found that grouping explicit-route-object contains ...omitted... You constructed your CURL for JSON as }, { "subobject": { ...omitted... } }, } ] but it should be: "ero": { "subobject":[{ ...omitted... } }, }, { "subobject": { ...omitted... } } |
| Comment by Jozef Gloncak [ 16/Jun/14 ] |
|
sorry, "ero": { { ...omitted... } , { ...omitted... }] I am going to try simulate this case. |
| Comment by Jozef Gloncak [ 16/Jun/14 ] |
|
I can confirm that I successfully reproduced bug on YANG model } where I constructed incorrect JSON input like }, } So conclusion is that YANG element has to be mapped to JSON:
and not vice versa. Please retest. |
| Comment by Vratko Polak [ 18/Jun/14 ] |
|
After changing JSON data to correct ones, update-lsp works without issues. |