Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-562

Parser determines choice node's default to be config=false

    XMLWordPrintable

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> "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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: