ConfD-6.4.2, cli-mode-name,cli-suppress-mode and cli-drop-node

If say i have a container

 container abc
   {
     tailf:cli-full-command;
     tailf:cli-add-mode;
     list oogway
     {
       key oogway;
       tailf:cli-mode-name "kung-fu-panda";

      leaf oogway
      {
              tailf:cli-drop-node-name;
               tailf:cli-full-command;
               tailf:info "<1-128>   Gateway Router ID";
              type uint32 {
                   tailf:info "<1-128>       Gateway Router ID";
                   range 1..128;
               }


      }
     leaf number
     {
       tailf:cli-full-command;
               tailf:info "<1-128>   Gateway Router ID";
              type uint32 {
                   tailf:info "<1-128>       Gateway Router ID";
                   range 1..128;
               }
     }
}

So according to ConfD-6.4.2 , I have to use -cli-suppress mode and cli-drop-node in combination.

But the same manual says cli-suppress-mode cannot be used when we specify cli-mode-name.

Is there any way around?

Hi,

combination of the annotations depends on what specific behavior/combination of commands you want to get - This is not completely clear from the attached model.

e.g. using “tailf:cli-drop-node-name;” if key leaf “oogway” is probably redundant - key name is not part of the command: "test-dev(config-abc)# oogway 11 number 22 "
and without this drop-node-name, yang compiles OK…