Yang Enumeration including space did not generate working CLIgen code, see [Choice with space is not working in CLIgen code](https://github.com/olofhagsand/cligen/issues/24)
This commit is contained in:
parent
f8850990d4
commit
6f294fe67a
4 changed files with 23 additions and 13 deletions
|
|
@ -34,7 +34,7 @@ module example3{
|
|||
type w;
|
||||
type enumeration {
|
||||
enum "bounded";
|
||||
enum "unbounded";
|
||||
enum "un bounded"; /* note w space */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -258,8 +258,8 @@ EOF
|
|||
new "cli validate"
|
||||
expectfn "$clixon_cli -1f $cfg -l o -y $fyang -l o validate" 0 '^$'
|
||||
|
||||
new "cli set transitive union string"
|
||||
expectfn "$clixon_cli -1f $cfg -l o -y $fyang set c ulle unbounded" 0 '^$'
|
||||
new "cli set transitive union string (and space)"
|
||||
expectfn "$clixon_cli -1f $cfg -l o -y $fyang set c ulle un\ bounded" 0 '^$'
|
||||
|
||||
new "cli validate"
|
||||
expectfn "$clixon_cli -1f $cfg -l o -y $fyang -l o validate" 0 '^$'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue