[MDSAL-572] Code generator fails to generate bindings for leafrefs that target a leaf with union type Created: 10/Jul/20  Updated: 17/Jul/20  Resolved: 17/Jul/20

Status: Resolved
Project: mdsal
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.3, 4.0.16, 5.0.13

Type: Bug Priority: Medium
Reporter: Tomas Cere Assignee: Tomas Cere
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Codegenerator fails for the following model:

grouping state-top {
    leaf index {
      type union {
        type enumeration {
          enum ALL;
        }
        type uint32;
      }
    }
  }  grouping g {
    list l {
      container state {
        uses state-top;
      }
      leaf index {
        type leafref {
          path "../state/index";
        }
      }
    }
  }

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