My question is that when I am using a completion callback, how can I know the completion callback is executed in config mode or in operational mode?
The completion callback definition is like below.
int (*completion)(struct confd_user_info *uinfo,
int cli_style, char *token, int completion_char,
char *cmdpath, char *cmdparam_id,
struct confd_qname *simpleType, char *extra);