Closed ian0113 closed 2 years ago
I just tried to use interactive fill with a file variable. If you are using the latest code this will work:
yangcli vladimir@localhost> @tmp/x.xml = fill test-module-list-input optional
Fill non-mandatory container list?
Enter Y for yes, N for no, or C to cancel: [default: N]
yangcli vladimir@localhost:fill> Y
Filling container /test-module-list-input/input/list:
Filling list /test-module-list-input/input/list/list-entry:
Enter string value for leaf <a>
yangcli vladimir@localhost:fill> foo1
Enter string value for leaf <b>
yangcli vladimir@localhost:fill> bar1
Add another list?
Enter Y for yes, N for no, or C to cancel: [default: N]
yangcli vladimir@localhost> N
yangcli vladimir@localhost> test-module-list-input @tmp/x.xml
RPC Request 2 for session 1:
<test-module-list-input xmlns="http://yuma123.org/ns/test/yangcli/fill/mod1">
<list>
<list-entry>
<a>foo1</a>
<b>bar1</b>
</list-entry>
</list>
</test-module-list-input>
RPC OK Reply 2 for session 1:
yangcli vladimir@localhost> quit
Hi, @vlvassilev
Thanks for your reply. The example worked, so I closed this issue.
Thanks, Ian
Hi, @vlvassilev
I don't know how to input a list, do you have any examples?
yang module:
in yangcli:
Thanks, Ian