# Ordered-by user issue with nested lists

**URL:** https://dmap-community.ductus.global/t/ordered-by-user-issue-with-nested-lists/3551
**Category:** YANG
**Created:** [March 11, 2021, 4:37am UTC](https://dmap-community.ductus.global/t/ordered-by-user-issue-with-nested-lists/3551 "2021-03-11T04:37:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ted-guo](https://avatars.discourse-cdn.com/v4/letter/t/ac91a4/32.png) [@ted-guo](https://dmap-community.ductus.global/u/ted-guo)
#### Post date: [March 11, 2021, 4:37am UTC](https://dmap-community.ductus.global/t/ordered-by-user-issue-with-nested-lists/3551/1 "2021-03-11T04:37:03Z")

</div>

Hello,

Currently, I encounter a issue with the _ConfD Basic 7.4.1_.

The Yang model looks like the following:

```auto
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

---

<div class="post-metadata">

### Author: ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)
#### Post date: [March 11, 2021, 10:18pm UTC](https://dmap-community.ductus.global/t/ordered-by-user-issue-with-nested-lists/3551/2 "2021-03-11T22:18:23Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ted-guo](https://avatars.discourse-cdn.com/v4/letter/t/ac91a4/32.png) [@ted-guo](https://dmap-community.ductus.global/u/ted-guo)
#### Post date: [March 12, 2021, 5:55am UTC](https://dmap-community.ductus.global/t/ordered-by-user-issue-with-nested-lists/3551/3 "2021-03-12T05:55:31Z")

</div>

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

---

<div class="post-metadata">

### Author: ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)
#### Post date: [March 12, 2021, 10:36am UTC](https://dmap-community.ductus.global/t/ordered-by-user-issue-with-nested-lists/3551/4 "2021-03-12T10:36:57Z")

</div>

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?

```java
  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

---

<div class="post-metadata">

### Author: ![ted-guo](https://avatars.discourse-cdn.com/v4/letter/t/ac91a4/32.png) [@ted-guo](https://dmap-community.ductus.global/u/ted-guo)
#### Post date: [March 12, 2021, 3:17pm UTC](https://dmap-community.ductus.global/t/ordered-by-user-issue-with-nested-lists/3551/5 "2021-03-12T15:17:42Z")

</div>

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
