Tailf to exit the container and take input from parent when any one leaf set

Hi,
Is there any tailf to exit the container and continue to input from the parent container when any one leaf of container is set? tailf:cli-flatten-container works only when all leaves of container are set.

tailf:cli-flatten-container

Allows the CLI to exit the container and continue to input from the parent container when all leaves in the current container has been set.

Rough model

container A {
   tailf:cli-sequence-commands;
   leaf B { }
   container C {
      tailf:cli-flatten-container;
       leaf D { }
       leaf E { }
   }
   leaf F { }

so basically - A B C D F , A B C D E F , A B C E F should work… anyway to achive this using tailfs… Currently A B C D E F is working.

Have a look at tailf:cli-optional-in-sequence, I believe it does what you are looking for.

Have tried tailf:cli-optional-in-sequence but it doesnt work if we have tailf:cli-flatten-container insider container.