Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
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> "mapping-authkey":
[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.