I’ve the got the following Container_1 (see its Yang Model just below) with 1 mandatory leaf Leaf_0 + 4 optional Leaves “Leaf_d, Leaf_a, Leaf_b, Leaf_c”.
If I type : Container_1 25 ?
the possible completions displayed are not in the order of leaf declaration ???
Leaf_a <0=enum0 | 1=enum1>
Leaf_b <0=enum0|1=enum1>
Leaf_c <0=enum0|1=enum1>
Leaf_d <0=enum0|1=enum1>
Can I control the order of leaves when I use the help command (?)
Regards
container Container_1 {
leaf Leaf_0{
type string {
length "1..35";
tailf:info "String max 35 digits";
}
tailf:cli-drop-node-name;
}
leaf Leaf_d{
type enumeration {
enum "0" {
value 0;
}
enum "1" {
value 1;
}
tailf:info "<0=enum0 | 1=enum1>";
}
tailf:info "<0=enum0 | 1=enum1>";
tailf:cli-optional-in-sequence;
}
leaf Leaf_a{
type enumeration {
enum "0" {
value 0;
}
enum "1" {
value 1;
}
tailf:info "<0=enum0 | 1=enum1>";
}
tailf:info "<0=enum0 | 1=enum1>";
tailf:cli-optional-in-sequence;
}
leaf Leaf_b {
type enumeration {
enum "0" {
value 0;
}
enum "1" {
value 1;
}
enum "2" {
value 2;
}
tailf:info "<0=enum0 | 1=enum1>";
}
tailf:info "<0=enum0 | 1=enum1>";
tailf:cli-optional-in-sequence;
}
leaf Leaf_c {
type enumeration {
enum "0" {
value 0;
}
enum "1" {
value 1;
}
enum "2" {
value 2;
}
tailf:info "<0=enum0 | 1=enum1>";
}
tailf:info "<0=enum0 | 1=enum1>";
tailf:cli-optional-in-sequence;
}
tailf:info "Set Container_1 ";
tailf:cli-compact-syntax;
tailf:cli-sequence-commands {
tailf:cli-reset-siblings;
}
tailf:cli-full-no;
}