Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-302

Binding v1 doesn't generate code from augment of choice from uses in rpc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Oxygen, Nitrogen SR2, Carbon SR4
    • Nitrogen SR1, Carbon SR2
    • None
    • None

      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;
                      }
                  }
              }
          }
      }
      

            rovarga Robert Varga
            JakubToth Jakub Toth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: