Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comma in yang list name will lead to cli setting error #186

Closed
nowaits opened this issue Mar 8, 2021 · 1 comment
Closed

comma in yang list name will lead to cli setting error #186

nowaits opened this issue Mar 8, 2021 · 1 comment
Labels

Comments

@nowaits
Copy link
Contributor

nowaits commented Mar 8, 2021

Here is the test yang file:

module unigw {
...
    list test0 {
        key name;
        leaf name {
            type string;
        }
    }
...
}

In cli when input set test0 a,b, will get following error:

root@localhost.localdomain /> set test0 a,b 
Mar  8 15:21:56: cli_dbxml: 286: Config error: api-path syntax error "/unigw:test0=%s/": rpc malformed-message List key test0 length mismatch : Invalid argument
Config error: api-path syntax error "/unigw:test0=%s/": rpc malformed-message List key test0 length mismatch : Invalid argument
root@localhost.localdomain /> 
@olofhagsand
Copy link
Member

Fixed by above patch. URI encoding problems.
Please verify.

@nowaits nowaits closed this as completed Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants