Can i annotate enum names?

is there any way to annotate a enum. actually in my requirement i want to display the different name for enums in cli

if enums are Locked and Unlocked i want to display them as true and false.

I’m not aware of any standard YANG statements or tailf extensions that allows you to rename enums.

Depending on your scenario, perhaps you could use just empty leaf elements or presence containers instead of enums (maybe with combination with choice). They can use alt-name annotation.

Something like this:

choice locked-unlocked {
     container locked {
             presence true;
             tailf:alt-name "true";

     container unlocked {
             presence true;
             tailf:alt-name "false";