# Can i annotate enum names?

**URL:** <https://dmap-community.ductus.global/t/can-i-annotate-enum-names/877>\
**Category:** YANG\
**Created:** [December 12, 2016, 5:00am UTC](https://dmap-community.ductus.global/t/can-i-annotate-enum-names/877 "2016-12-12T05:00:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khan](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@khan](https://dmap-community.ductus.global/u/khan)\
**Post date:** [December 12, 2016, 5:00am UTC](https://dmap-community.ductus.global/t/can-i-annotate-enum-names/877/1 "2016-12-12T05:00:35Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![jjohansson](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jjohansson](https://dmap-community.ductus.global/u/jjohansson)\
**Post date:** [December 12, 2016, 2:29pm UTC](https://dmap-community.ductus.global/t/can-i-annotate-enum-names/877/2 "2016-12-12T14:29:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mnovak](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mnovak/32/183_2.png) [@mnovak](https://dmap-community.ductus.global/u/mnovak)\
**Post date:** [December 12, 2016, 2:39pm UTC](https://dmap-community.ductus.global/t/can-i-annotate-enum-names/877/3 "2016-12-12T14:39:06Z")

</div>

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:

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

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

```
