Way of displaying group items under another container

It’s a bit unclear, but perhaps you are looking for something like this:

  grouping ecdsa-cipher-grouping {
    container ecdsa-cipher {
      leaf curve-size {
        type uint16;
      }
    }
  }

  grouping config-tls-sni-grouping {
    container cipher {
      choice cipher-choice {
        case ecdsa-cipher {
          uses ecdsa-cipher-grouping;
          leaf strict-cipher {
            type empty;
          }
        }
      }
    }
  }

  container default {
    container trustpoint {
      tailf:cli-sequence-commands;
      tailf:cli-compact-syntax;
      leaf trust {
        tailf:cli-drop-node-name;
        type string;
      }
      uses ecdsa-cipher-grouping;
    }
  }