[YANGTOOLS-135] Augmentations are not deserialized from CompositeNode into their respective Java classes Created: 24/Apr/14  Updated: 10/Apr/22  Resolved: 18/Jun/14

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

Type: Bug
Reporter: Alexander Fan Assignee: Martin Vitez
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: Macintosh


External issue ID: 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>.



 Comments   
Comment by Alexander Fan [ 24/Apr/14 ]

Just to be clear, the Flow's other properties get deserialized properly. Its name, match, & other properties are successfully deserialized and inserted into the Flow (Java) object.

The problem is that the ColorAction is not successfully deserialized and is not inserted into the Flow (Java) object.

Comment by Tony Tkacik [ 17/Jun/14 ]

Fixed in https://git.opendaylight.org/gerrit/#/c/8071/2

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