I’m looking to make a list with a known value set on an enumerated or a specific value set on a string node.
I’m trying to use grouping or choice case or a list with multi key, but it didn’t work.
How can I get a list with auto-completion on value or a specific value?
I want to choose my key between enum or string but only one can be set.
Here is my example :
list mylist
choice foo-grouping {
case foo-grouping1 {
leaf bar_enum {
type enum {
enum "both" {
value 0;
}
enum "inbound" {
value 1;
}
enum "outbound" {
value 2;
}
}
tailf:cli-drop-node-name;
tailf:cli-optional-in-sequence;
}
}
case foo-grouping2 {
leaf bar_string {
type string {
}
}
tailf:cli-drop-node-name;
tailf:cli-optional-in-sequence;
}
}
}
key "bar_string bar_enum"
}