# MUST statement feasibility

**URL:** https://dmap-community.ductus.global/t/must-statement-feasibility/4754
**Category:** YANG
**Created:** [August 19, 2024, 11:41am UTC](https://dmap-community.ductus.global/t/must-statement-feasibility/4754 "2024-08-19T11:41:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![binhddt](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@binhddt](https://dmap-community.ductus.global/u/binhddt)
#### Post date: [August 19, 2024, 11:41am UTC](https://dmap-community.ductus.global/t/must-statement-feasibility/4754/1 "2024-08-19T11:41:28Z")

</div>

Dear,

I have the following YANG:

1. Container A:
  - Leaf B, range {0, 1}
  - Container C [key leaf: D]
    - Leaf D
    - Container E [key leaf: F]
      - Leaf F
      - Leaf G
      - Leaf H

I’m trying to make a MUST statement which allows B to be configured as 1 only when the same value of G and H is configured together across D (assuming that F has a unique G and H).  
i.e.

 ![Example](https://canada1.discourse-cdn.com/flex010/uploads/ductus_dmap/original/1X/093e9a367b83af2df4b2ab81e7d71d788e4be2ff.png)

I would appreciate if you can give any hints how to do it.

---

<div class="post-metadata">

### Author: ![sbarvick](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/sbarvick/32/440_2.png) [@sbarvick](https://dmap-community.ductus.global/u/sbarvick)
#### Post date: [August 22, 2024, 8:03am UTC](https://dmap-community.ductus.global/t/must-statement-feasibility/4754/2 "2024-08-22T08:03:58Z")

</div>

Hi,

Welcome to the ConfD Community. I suggest that you take a shot at the MUST logic that you are trying to implement so that the Community might help debug it. The tables are helpful, but there is nothing like the actual YANG with the MUST attempt to help get started.

Regards,  
Scott
