[CONTROLLER-391] Augmentations are not properly serialized from Java classes into CompositeNode Created: 24/Apr/14 Updated: 25/Jul/23 Resolved: 19/Jun/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Alexander Fan | Assignee: | Amit Mandke |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| External issue ID: | 839 |
| Description |
|
I've added a new case to the actions in opendaylight-action-types. } Then, I create a Flow object in Java. I use the respective builders for Instructions, ApplyAction, Action, etc. RuntimeGeneratedMappingServiceImpl translates this Java object for Flow into the respective CompositeNode conform. After serializing, all the namespaces for the nested objects within the Flow object are the SAME. ] ] ] Now, this CompositeNode object is supposed to be inserted into the RESTConf DB. |
| Comments |
| Comment by Tony Tkacik [ 24/Apr/14 ] |
|
Moved to YANGTools since this is caused by incorrect translation of Instance Identifier in binding-generator-impl : InstanceIdentifierCodecImpl |
| Comment by Alexander Fan [ 03/May/14 ] |
|
With the new datastore changes, this same issue arises in a different way. Explanation of this different way: Java object (i.e. Flow) can be successfully converted to CompositeNode, which has all the same namespaces because the serialization passes the Flow's namespace down to all its children. When converting CompositeNode to NormalizedNode, there are searches for the case node. ==== Added a fix in: |
| Comment by Alexander Fan [ 09/May/14 ] |
|
|
| Comment by Tony Tkacik [ 19/May/14 ] |
|
Bit of clarification: It seems that runtime generated codecs for your case did use incorrect namespace. |
| Comment by Tony Tkacik [ 17/Jun/14 ] |