How to selectively reset a leaf in a container

Hi

I have a container with 3 leaves, namely a,b and c. What I need is

  1. If a is set, we need to reset b and c.
  2. If b or c is set, need to reset a.

First one is possible by using tailf reset-container. Is it possible to do the second one? Pls help with any solutions for this. Snippet of model given below

   container fixup {
      leaf a {
        tailf:cli-reset-container;
        tailf:cli-full-command;
        type empty;
      }
      leaf b {
        tailf:cli-full-command;
        type empty;
      }
      leaf c {          
        tailf:cli-full-command;
        type empty;
      }
    }

Thanks
Swaroop

Welcome!

Maybe you can use YANG’s choice statement? Something like:

container fixup {
  choice fixup-choice {
    case only-a {
      leaf a { type empty; }
    }
    case some-of-b-c {
      leaf b { type empty; }
      leaf c { type empty; }
    }
  }
}

Thank you.
That worked