I have a situation as explained below:
leaf-1 is boolean type.
leaf-2 is string type.
I must be allowed to modify leaf-1 all the time. But leaf-2 must be allowed to modify only when leaf-1 set to ‘false’.
case 1: leaf-1 set to true first. Must not allow any operations on leaf-2.
case 2: leaf-2 created, later leaf-1 set to ‘true’ (It should be allowed if i use must condition it fails) then i should not be able to modify leaf-2. leaf-2 operations should be allowed only after leaf-1 set to ‘false’ again.
Please help me how i can achieve this.