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