ConfD User Community

<cr> help option is not available in download-uri mode after configure with suffix but cli accepts

Hi expert,

help option is not available in download-uri mode after configure with suffix but cli accepts.
There is no action when execute ? after suffix config. But when enter key with complete config then cli accepts and works fine also.

localhost(config-resource-type-config-resource)#download-uri dhcpv4 ?
Description: URI extension
Possible completions:
current-sw-version mac serial-number <cr>
localhost(config-resource-type-config-resource)#download-uri dhcpv4
localhost(download-uri)#current-sw-version ?
Description: dynamic URL composition suffix
Possible completions:
<url-suffix> <string, min: 1 chars, max: 64 chars>
localhost(download-uri)#current-sw-version abc.txt <=== it accepts without <cr> option

below is my yang data model for download-uri:-

 grouping extension{
      container ext {
        tailf:cli-reset-container;
        tailf:cli-flatten-container;
        tailf:cli-sequence-commands;
        tailf:cli-compact-syntax;
        tailf:cli-drop-node-name;
        leaf uri-ext {
          type uri-extension-types;
          tailf:info "URI extension";
          tailf:cli-drop-node-name;
          tailf:cli-reset-container;
          tailf:cli-incomplete-command;
        }
        leaf mac-index {
          when "../uri-ext = 'mac'";
          type uint32 {
          range "0..15";
          tailf:info "<0-15>;;mac index value";
          }
        tailf:cli-reset-container;
        tailf:info "mac index value to be used with URI";
        tailf:cli-drop-node-name;
        tailf:cli-incomplete-command;
        }
        leaf suffix {
          type string {
          length "1..64";
          tailf:info "<url-suffix>;;<string, min: 1 chars, max: 64 chars>";
          }
          tailf:info "dynamic URL composition suffix";
tailf:cli-drop-node-name;
        tailf:cli-reset-container;
        }
      }
  }

  grouping resource-attr-group {
    list download-uri {
      ordered-by user;
      max-elements 4;
      key "uri";
      tailf:info "list of resources.";
      leaf uri {
        type string {
          length "1..1024";
        }
        tailf:info "<resource-download-uri> <dhcpv4>;; uri value(max 1024 chars) or dhcpv4 to get value from DHCP";
      }
      uses extension;
      tailf:cli-mode-name "download-uri";
      tailf:cli-sequence-commands;
      tailf:cli-compact-syntax;
      tailf:cli-flatten-container;
   }

That’s inconvenient indeed, you may try to open a bug report if your team has a TAC account. But I am not sure the bug report would receive a high priority, given that the problem affects only TAB-completion, everything else seems to work fine.