Stop suggestions for boolean leaf

Hi,

I have a mode like below:

container cont1 {
leaf leaf1 {
type boolean;
default true;
}
}

With the above model when i try to configure will below:

Config#cont1 leaf1 ?
true false

Here i have to select option true/false to complete the CLI.
Do we have any way so that we can avoid this suggestions in CLI.
like if mention “Config#cont1 leaf1” is true form, if mentioned “Config#no cont1 leaf1” it is false.

Thanks
Anil

Try using the tailf:cli-boolean-no extension.

Example:

import tailf-common { prefix tailf; }
...
container cont1 {
  leaf leaf1 {
    type boolean;
    tailf:cli-boolean-no;
  }
}

Hi,

Thanks for the responce.
This tailf notation will lead to disply “no cont1 leaf1” which is not required in my CLI. Is there any way to avoid this.

Thanks
Anil

Not with a boolean type. You can use “type empty” instead if the CLI behavior is what you prioritize…