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

Augmentations are not deserialized from CompositeNode into their respective Java classes

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Mac OS
      Platform: Macintosh

    • 838

    Description

      I've added a new case to the actions in opendaylight-action-types.
      augment ".../flow-node:apply-actions/flow-node:action/flow-node:action" {
      case color-action-case {
      container color-action

      { ... }

      }
      }

      Then, I try to insert a color-action through RESTConf.
      <flow>
      <instructions>
      <instruction>
      <order>1</order>
      <apply-actions>
      <action>
      <order>1</order>
      <color-action xmlns="urn:opendaylight:color-code">
      <color xmlns="urn:opendaylight:color-code">red</color>
      </color-action>
      </action>
      </apply-actions>
      </instruction>
      </instructions>
      </flow>

      This successfully gets into the RESTConf DB.
      However, I have a DataChangeListner for Flows and the <color-action> is not successfully parsed. The Flow is correctly parsed, except the <action> is null.

      Per my investigation,
      LazyGeneratedCodecRegistry & TransformerGenerator create a codec for deserializing the XML for the flow into Java.
      However, this codec does not successfully deserialize the <color-action>.

      Attachments

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

        Activity

          People

            mvitez@cisco.com Martin Vitez
            railor33@gmail.com Alexander Fan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: