ConfD User Community

Annotate leaf-list to add ordered-by user?

I have a leaf-list I need to be in user order, but the yang I’m importing doesn’t have order specified.

Can I use annotate-statement to add

tailf:annotate-statement "leaf-list [name='servers']" {
    ordered-by user;
}

The tailf annotate extensions do not support adding statements that change the way data is stored. That would not be backward compatible with the original YANG model. If you make such changes to a YANG model you need to make it your own, I.e. change the namespace (+ prefix) of it.
See the YANG RFC for details: RFC 7950 - The YANG 1.1 Data Modeling Language