[YANGTOOLS-562] Parser determines choice node's default to be config=false Created: 16/Dec/15  Updated: 10/Apr/22  Resolved: 16/Dec/15

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

Type: Bug
Reporter: Robert Varga Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 4793

 Description   

After switching CDS to properly pass down the TreeType, lispflowmapping cannot store data into the configuration datastore:

[17:38] <rovarga> where do you perform the RESTCONF store to?
[17:38] <lori> /restconf/config/odl-mappingservice:mapping-database/virtual-network-identifier/0/authentication-key/ipv4:192.0.2.1%2f32/
[17:40] <lori> this is what I store:
[17:40] <lori> {
[17:40] <lori> "authentication-key": {
[17:40] <lori> "eid-uri": "ipv4:192.0.2.1/32",
[17:40] <lori> "eid":

{ [17:40] <lori> "address-type": "ietf-lisp-address-types:ipv4-prefix-afi", [17:40] <lori> "ipv4-prefix": "192.0.2.1/32" [17:40] <lori> }

,
[17:40] <lori> "mapping-authkey":

{ [17:40] <lori> "key-string": "password", [17:40] <lori> "key-type": 1 [17:40] <lori> }

[17:40] <lori> }
[17:40] <lori> }
[17:40] <lori> and this is what I get:
[17:40] <lori> {
[17:40] <lori> "errors": {
[17:40] <lori> "error": [
[17:40] <lori> {
[17:40] <lori> "error-type": "application",
[17:40] <lori> "error-tag": "operation-failed",
[17:40] <lori> "error-message": "canCommit encountered an unexpected failure",
[17:40] <lori> "error-info": "org.opendaylight.yangtools.yang.data.impl.schema.tree.SchemaValidationFailedException: Child (urn:opendaylight:lfm:mappingservice?revision=2015-09-06)ipv4-prefix is not valid child according to schema.

Looking at the models, there are only two twists:

  • the leaves are added indirectly via two groupings
  • the leaves do not have an explicit case statement

I suspect the latter is causing problems.



 Comments   
Comment by Robert Varga [ 16/Dec/15 ]

https://git.opendaylight.org/gerrit/31468

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