[MDSAL-10] Support anydata and anyxml statements in Binding V1 Created: 09/Apr/14  Updated: 06/Aug/19  Resolved: 06/Aug/19

Status: Resolved
Project: mdsal
Component/s: Binding codegen, Binding runtime
Affects Version/s: None
Fix Version/s: 4.0.2

Type: Epic Priority: Highest
Reporter: Milos Fabian Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


Issue Links:
Blocks
blocks CONTROLLER-227 Websockets: Test & fix data change no... Resolved
blocks MDSAL-237 Milestone: Implement Binding Specific... Resolved
is blocked by YANGTOOLS-475 Milestone: Better anyxml support in y... Resolved
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MDSAL-285 Translate anyxml OpaqueObject to/from... Sub-task Resolved Robert Varga  
MDSAL-428 Add anydata/anyxml Binding Spec inter... Sub-task Resolved Robert Varga  
MDSAL-437 Generate binding interfaces for anyxm... Sub-task Resolved Robert Varga  
MDSAL-438 Generate binding interfaces for anyda... Sub-task Resolved Robert Varga  
MDSAL-439 Define OpaqueObject and OpaqueData eq... Sub-task Resolved Robert Varga  

 Description   

-anyxml statement is not generated into Java APIs, mapping service is not provided



 Comments   
Comment by Mayank Agarwal [ 17/Apr/14 ]

More details from Milos:

The first problem is if yang model contains anyxml node - it is skipped during yang-to-java mapping (code generating). For example, you can look at the yang model in controller/opendaylight/md-sal/sal-remote and there is „notification data-changed-notification“ having „anyxml data“ node, so if you look at DataChangeEvent.java interface (generated from the yang model), there no such field representing anyxml data node.
The second is related problem - missing mapping between XML data containing anyxml node and Java objects (and vice versa).
I discussed the bug with Tony Tkacik, and he said this is quite complicated, needs to be designed properly and it won‘t be easy to implement.

Comment by Mayank Agarwal [ 18/Apr/14 ]

Gerrit Patch:

https://git.opendaylight.org/gerrit/6289

Comment by Tony Tkacik [ 24/Jul/14 ]

Moved to post-helium since this is change of Binding Specification.

Comment by Robert Varga [ 13/Nov/15 ]

Move to MDSAL

Comment by Martin Ciglan [ 07/Jun/17 ]

WIP: https://git.opendaylight.org/gerrit/#/c/58413/

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