# Suppressing a leaf from operational mode

**URL:** https://dmap-community.ductus.global/t/suppressing-a-leaf-from-operational-mode/2033
**Category:** YANG
**Created:** [August 22, 2018, 4:36am UTC](https://dmap-community.ductus.global/t/suppressing-a-leaf-from-operational-mode/2033 "2018-08-22T04:36:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Himani](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@Himani](https://dmap-community.ductus.global/u/Himani)
#### Post date: [August 22, 2018, 4:36am UTC](https://dmap-community.ductus.global/t/suppressing-a-leaf-from-operational-mode/2033/1 "2018-08-22T04:36:18Z")

</div>

Hi,

My yang is like below:

Container xyz {

list A {  
key ‘a’;  
leaf a {  
type uint32;  
}  
leaf b{  
type string;  
}  
leaf c{  
tailf:hidden full;  
config false;  
}  
}  
}

Because of this A is coming in operational mode also. When i do show A, i get only keys as there is only one leaf in operational mode which is hidden. Is there any way i can hide it from operational mode.

Regards,  
Himani

---

<div class="post-metadata">

### Author: ![mnovak](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mnovak/32/183_2.png) [@mnovak](https://dmap-community.ductus.global/u/mnovak)
#### Post date: [August 28, 2018, 12:24pm UTC](https://dmap-community.ductus.global/t/suppressing-a-leaf-from-operational-mode/2033/2 "2018-08-28T12:24:15Z")

</div>

So what you want is not to display `leaf a`?  
What should be displayed then? Empty row(s) for each element in `A`?

If empty row(s) is OK, then you can use `tailf:cli-show-template` I guess.

---

<div class="post-metadata">

### Author: ![Himani](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@Himani](https://dmap-community.ductus.global/u/Himani)
#### Post date: [September 12, 2018, 10:39am UTC](https://dmap-community.ductus.global/t/suppressing-a-leaf-from-operational-mode/2033/3 "2018-09-12T10:39:12Z")

</div>

How can we use show-template for giving empty rows?

---

<div class="post-metadata">

### Author: ![mnovak](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/mnovak/32/183_2.png) [@mnovak](https://dmap-community.ductus.global/u/mnovak)
#### Post date: [September 19, 2018, 1:07pm UTC](https://dmap-community.ductus.global/t/suppressing-a-leaf-from-operational-mode/2033/4 "2018-09-19T13:07:24Z")

</div>

I think empty string as `tailf:cli-show-template` should be OK.

---

<div class="post-metadata">

### Author: ![Himani](https://avatars.discourse-cdn.com/v4/letter/h/3da27b/32.png) [@Himani](https://dmap-community.ductus.global/u/Himani)
#### Post date: [October 1, 2018, 10:50am UTC](https://dmap-community.ductus.global/t/suppressing-a-leaf-from-operational-mode/2033/5 "2018-10-01T10:50:26Z")

</div>

Does not work. I tried.
