# How to disable certain parameters from a ietf yang

**URL:** <https://dmap-community.ductus.global/t/how-to-disable-certain-parameters-from-a-ietf-yang/1563>\
**Category:** YANG\
**Created:** [September 28, 2017, 11:48pm UTC](https://dmap-community.ductus.global/t/how-to-disable-certain-parameters-from-a-ietf-yang/1563 "2017-09-28T23:48:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinadh](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@srinadh](https://dmap-community.ductus.global/u/srinadh)\
**Post date:** [September 28, 2017, 11:48pm UTC](https://dmap-community.ductus.global/t/how-to-disable-certain-parameters-from-a-ietf-yang/1563/1 "2017-09-28T23:48:35Z")

</div>

I need to use subset of IETF defined yang file for my feature. I dont need to display/use some of the parameters in one of the containers.  
How do I disable those parameters from the rendered CLI?

---

<div class="post-metadata">

**Author:** ![jjohansson](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jjohansson](https://dmap-community.ductus.global/u/jjohansson)\
**Post date:** [September 29, 2017, 2:40pm UTC](https://dmap-community.ductus.global/t/how-to-disable-certain-parameters-from-a-ietf-yang/1563/2 "2017-09-29T14:40:32Z")

</div>

Have a look at the tailf:hidden statement without the hide group listed in confd.conf. For more information, see section 10.7. Hidden Data and the tail\_yang\_extensions(5) man page.

---

<div class="post-metadata">

**Author:** ![jjohansson](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@jjohansson](https://dmap-community.ductus.global/u/jjohansson)\
**Post date:** [September 29, 2017, 2:41pm UTC](https://dmap-community.ductus.global/t/how-to-disable-certain-parameters-from-a-ietf-yang/1563/3 "2017-09-29T14:41:02Z")

</div>

The same issue is discussed in [Block a module only on CLI](https://discuss.tail-f.com/t/block-a-module-only-on-cli/1481).

---

<div class="post-metadata">

**Author:** ![srinadh](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@srinadh](https://dmap-community.ductus.global/u/srinadh)\
**Post date:** [October 2, 2017, 10:28pm UTC](https://dmap-community.ductus.global/t/how-to-disable-certain-parameters-from-a-ietf-yang/1563/4 "2017-10-02T22:28:11Z")

</div>

Based on the thread, I tried using agument and tailf:hidden to disable certain parameters defined in ietf yang file but it doesnt work for me. Any suggestions?  
module cn-cnos-idu {  
prefix idu;  
import ietf-system {  
prefix system;  
}  
augment “/system:ntp/system:server” {  
leaf association-type {  
tailf:hidden full;  
}  
leaf association-type {  
tailf:hidden full;  
}  
leaf iburst {  
tailf:hidden full;  
}  
leaf prefer {  
tailf:hidden full;  
}  
}  
}

My idea was to disable association-type, iburst and prefer leaves from ietf-system.yang file…

I am getting the following compilation errors:  
| cn-cnos-idum.yang:43: error: expected keyword ‘type’ as substatement to ‘leaf’  
| cn-cnos-idum.yang:46: error: expected keyword ‘type’ as substatement to ‘leaf’  
| cn-cnos-idum.yang:49: error: expected keyword ‘type’ as substatement to ‘leaf’

Any suggestions on what I am missing?

---

<div class="post-metadata">

**Author:** ![josephm](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@josephm](https://dmap-community.ductus.global/u/josephm)\
**Post date:** [October 3, 2017, 8:36am UTC](https://dmap-community.ductus.global/t/how-to-disable-certain-parameters-from-a-ietf-yang/1563/5 "2017-10-03T08:36:47Z")

</div>

Hi,

try standalone augments per each leaf, e.g.:

```
augment "/system:ntp/system:server/system:association-type" {
  tailf:hidden full;
}
```
