vlvassilev / yuma123

The yuma123 repository
Other
24 stars 26 forks source link

How to use list in rpc input ? #127

Closed ian0113 closed 2 years ago

ian0113 commented 2 years ago

Hi, @vincentbernat

I don't know how to input a list, do you have any examples?

yang module:

module test-module {
  grouping test-list {
    container list {
      list list-entry {
        leaf a {
          type string;
        }
        leaf b {
          type string;
        }
      }
    }
  }
  rpc test-module-list-input {
    input  {
      uses test-list;
    }
  }
}

in yangcli:

yangcli ian@localhost> load test-module
yangcli ian@localhost> mgrload test-module
yangcli ian@localhost> test-module-list-input list=

Error: 'missing value string
Error: invalid value (list)
Error in the parameters for 'test-module-list-input' command (invalid value)

yangcli ian@localhost> 

Thanks, Ian

ian0113 commented 2 years ago

Duplicated, so I close it.

https://github.com/vlvassilev/yuma123/issues/126