Adding alias to a leaf node

Newbie here. I am checking if its even possible to add an alias to leaf node in the yang file.

Basically this is what the Yang file looks like:
container interface {
list nic {
key name;
leaf name {
type string;

I wanted to add an alias to the “leaf name” so that i can reference it by an alternative name as well. I looked at confd-user-guide but didn’t find anything helpful. Any help/pointers is appreciated.


You can assign an alternative name to a leaf using tailf:alt-name and use that in CLI. Note though that it would be pretty useless in your case, you do not refer to key leafs in CLI, unless you use something like tailf:cli-expose-key-name.