[MDSAL-302] Binding v1 doesn't generate code from augment of choice from uses in rpc Created: 25/Jan/18  Updated: 09/Mar/18  Resolved: 09/Mar/18

Status: Resolved
Project: mdsal
Component/s: None
Affects Version/s: Nitrogen SR1, Carbon SR2
Fix Version/s: Oxygen, Nitrogen SR2, Carbon SR4

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


 Description   

Binding v1 doesn't generate code if we use yang with augment of choice in uses in rpc; example:

module augment-choice { 
    namespace "augment:choice";
    prefix "augchoi";
    revision 2018-01-25;

    grouping some-grouping {
        choice result {
            case no-success {
                container foo;
            }
        }
    }

//augment of choice in rpc doesn't work
    rpc some-rpc {
        output {
            uses some-grouping {
                augment result {
                    case success {
                        container bar;
                    }
                }
            }
        }
    }

//augment of choice in container works
    container some-cont { 
        uses some-grouping {
            augment result {
                case success {
                    container bar;
                }
            }
        }
    }
}


 Comments   
Comment by Robert Varga [ 26/Jan/18 ]

Oxygen: https://git.opendaylight.org/gerrit/67615

Nitrogen: https://git.opendaylight.org/gerrit/67618

Carbon: https://git.opendaylight.org/gerrit/67619

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