Creating new key for list without default values for leafs

hi,
i have list with leafs having default values,
is there any way so that whenever we create a new list entry in cli , confd should not send the default values for leafs.
ex…

list user {
   key id;
   leaf id{
      type string;
   }
   leaf name{
       type string;
  }
  leaf role{
        type string;
        default "NA";
      }
}

is there any way if create a new entry in cli using

# user admin

is should not send its leaf’s default values.

There is no way for default values to be optional. Once it is specified in the YANG model, leaf nodes will get the default values when left un-configured. You can only control how default values are being handled by ConfD on the northbound interfaces through configuring /confdConfig/defaultHanlingMode in confd.conf. Perhaps you can consider not specifying the default value in YANG and implementing hooks instead as described in Chapter 10.6 of the ConfD User Guide and set the values of the un-configured leaf nodes according to your own requirement.