I have a container, my container contain a list, i want to use add command to add user in my list, that’s works. Now i want to use remove container to remove user in my list.
Is-it possible to do that ?
exemple :
CLI>add 12
CLI>add 14
CLI>add 16
CLI>remove 12
CLI>display
add 14
add 16
container my-list {
presence “”;
container add {
list add-list {
key number_val;
leaf type {
type enumeration {
enum “class” {
value 0;
}
enum “value” {
value 1;
}
}
default “value”;
tailf:cli-drop-node-name;
}
leaf number_val {
type uint8 {
range “0…127”;
}
tailf:cli-drop-node-name;
}
tailf:cli-drop-node-name;
tailf:cli-incomplete-command;
}
tailf:cli-compact-syntax;
tailf:cli-optional-in-sequence;
tailf:cli-drop-node-name;
}
container display {
presence “”;
tailf:cli-full-command;
}
container remove {
leaf type {
type enumeration {
enum “class” {
value 0;
}
enum “value” {
value 1;
}
}
default “value”;
tailf:cli-drop-node-name;
}