Basically we are deprecating a single enum value from enumeration leaf node which will be obsoleted eventually. But once its obsolete is there a way to hide only that enum alone? Bcoz tailf:hidden works on leaf node not just on enum.
Sample code.
leaf test {
type enumeration {
enum “val1”;
enum “val2”;
enum “val3”;
}
The response to this similar question suggests there is no built-in way to hide an enum value from CLI:
But I think you could give it a try to register a custom completion callback for the leaf, e.g. with tailf:cli-completion-actionpoint, to replace the auto completion mechanism and only print the values you want to support.
Find more details about the completion()callback in the confd_lib_dp man page. If your are looking for implementation examples, I suggest navigating to the examples.confd/ directory and grep e.g. for “confd_action_reply_completion”.