Can not configure with confd_cli

Hi,

I am using the yang below (which was compiled well). when I try to configure “source” of that yang, it doesn’t give me any choice to select ( after writing source and ?). when I try to type IP I receive error. see below the error and the yang model.

the error:
localhost(config-tp-tunnel-abcd/unidirectional)# config source
Possible completions:

localhost(config-tp-tunnel-abcd/unidirectional)# config source 1.1.1.1
---------------------------------------------------------------^
syntax error: unknown argument

yang:

   container source {
        description "Tunnel head node Id.";
        choice lsr-id-type-choice {
            case lsr-ip-id {
                when "/tp/globals/config/lsr-identification='lsr-router-id'";
                description "";
                reference "";

leaf lsr-router-id {
  /* Add when check */
  type inet:ip-address;
  description
    " tunnel soure node IP address";
}                }
            case lsr-itu-id {
                when "/tp/globals/config/lsr-identification='lsr-itu-id'";
                description "";
                reference "RFC 6923";

leaf country-code-id {
  /* Add when check */
  type country-code;
  description
    " tunnel soure node IP address";
}
leaf itu-carrier-code-id {
  /* Add when check */
  type itu-carrier-code;
  description
    " tunnel soure node IP address";
}
leaf node-id-itu {
  /* Add when check */
  type uint32;
  description
    " tunnel soure node IP address";
}                }
            case lsr-tp-id {
                when "/tp/globals/config/lsr-identification='lsr-tp-id'";
                description "";
                reference "RFC 6923";

leaf global-id {
  /* Add when check */
  type inet:as-number;
  description
    " tunnel soure node IP address";
}
leaf node-id {
  /* Add when check */
  type uint32;
  description
    " tunnel soure node IP address";
}                }
        }
    }

It looks like something might be wrong with your when-statements (all are false) causing all choice/cases to become non-existent.