Ordered-by user issue with nested lists

Hello,

Currently, I encounter a issue with the ConfD Basic 7.4.1.

The Yang model looks like the following:

container test1-container {
    list test1-list {
        key "name"
        leaf name {
            type string;
        }
        container test2-container {
            list test2-list {
                ordered-by user;
                key name
                leaf name {
                    type string;
                }
            }
        }
    } 
}

I would like to only make the user can move the order of test2 list.

However, the user can see the after/before/first/last command with the above Yang model when the user enters the command like “move test1-container test1-list test1”.

My question is how I can hide the possible completion of the after/before/first/last for the test1-list.

Thank you.
ted-guo

Seems like a bug. I’ll enter it into the Tail-f ticket system. Thanks!

Hello cohult,

Thanks for your response.

I am curious whether ConfD support some tail-f extensions to reach out the demand.

That would be really nice to be a temporary solution.

Thank you anyway!
ted-guo

Hi ted-guo,

Ugly workaround below. Better to wait for the fix, and since you are a ConfD Basic user you are only using the CLI for development purposes anyway, right?

  container test1-container {
    list test1-list {
      key "name";
      leaf name {
        type string;
      }
      tailf:cli-incomplete-command;
      container dummy-test2-container {
        tailf:cli-drop-node-name;
        container test2-container {
          list test2-list {
            ordered-by user;
            min-elements 1;
            key "name";
            leaf name {
              type string;
            }
          }
        }
      }
    }
  }

Best regards

Thank you very much, cohult!

It is really good to be my temporary solution.

And, yep, I just use the ConfD CLI for development purpose only.

Thank you,
ted-guo