[MDSAL-729] Always genenerate module DataRoot Created: 09/Mar/22  Updated: 09/Mar/22  Resolved: 09/Mar/22

Status: Resolved
Project: mdsal
Component/s: Binding codegen
Affects Version/s: None
Fix Version/s: 9.0.0

Type: Task Priority: Medium
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The concept of each module having a root is (i.e. a namespace) is quite prevalent in YANG. We currently skip generation of DataRoot if there are no instantiated data schema nodes present.

This has an unfortunate effect on the run-time view of things, as we really want each module to have a RuntimeType – but if there is no DataRoot, there is no GeneratedType to fulfill the requirement to fulfil the API requirements of ModuleRuntimeType.

Eliminate this special case and always generate a DataRoot class.


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