ConfD User Community

Tailf:sort-priority command is not apply inside choice case container

tailf:sort-priority command is not apply with on my container if it is inside a choice case.
In other case it’s working well.
test-bis should be shown first on my test.

container test-bis {
  tailf:sort-priority 10;
  leaf blob{
    type empty;
  }
}
choice a {
  case b {
    container test {
      tailf:sort-priority 11;
      leaf blob {
        type empty;
      }
    }
  }
  case c {
    container test2 {
      tailf:sort-priority 11;
      leaf blob {
        type empty;
      }
    }
  }
}

0123#show
test blob /tailf:sort-priority 11/
test-bis blob /tailf:sort-priority 10/

I’m afraid this is due to that the container test is not on the same level as the container test-bis; but at the same time, it is not possible to use tailf:sort-priority on a choice node. You can reorder the nodes in your data model or wrap the choice node in a container. I’m not aware of any good options if you do not own the data model or do not want to modify it.