# How to display config true leaf's is default show

**URL:** https://dmap-community.ductus.global/t/how-to-display-config-true-leafs-is-default-show/996
**Category:** YANG
**Created:** [February 2, 2017, 2:35pm UTC](https://dmap-community.ductus.global/t/how-to-display-config-true-leafs-is-default-show/996 "2017-02-02T14:35:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![khan](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@khan](https://dmap-community.ductus.global/u/khan)
#### Post date: [February 2, 2017, 2:35pm UTC](https://dmap-community.ductus.global/t/how-to-display-config-true-leafs-is-default-show/996/1 "2017-02-02T14:35:17Z")

</div>

hi,  
is there any way to display all config true and config false leaf’s defined in yang in default show, without defining manual show template for output rendering.

thanks.

---

<div class="post-metadata">

### Author: ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)
#### Post date: [February 2, 2017, 3:15pm UTC](https://dmap-community.ductus.global/t/how-to-display-config-true-leafs-is-default-show/996/2 "2017-02-02T15:15:53Z")

</div>

Hi,

Do you mean something like(?):

```
$ pwd
/home/tailf/confd-6.3/examples.confd/cdb_oper/ifstatus
$ make all start
$ confd_cli -u admin -C
# show interfaces ; show running-config interfaces
NAME BYTES PACKETS ERRORS DROPPED BYTES PACKETS ERRORS DROPPED COLLISIONS  
--------------------------------------------------------------------------------------------
lo 574584250 1416245 0 0 574584250 1416245 0 0 0           

interfaces interface lo
 address 127.0.0.1
  prefix-length 8
 !
!
```

---

<div class="post-metadata">

### Author: ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)
#### Post date: [February 2, 2017, 3:23pm UTC](https://dmap-community.ductus.global/t/how-to-display-config-true-leafs-is-default-show/996/3 "2017-02-02T15:23:33Z")

</div>

You could for example implement your own show command that use the confd\_load tool:

```
$ confd_load -o -F c -p /interfaces 
interfaces interface lo
 status receive bytes 574719737
 status receive packets 1417516
 status receive errors 0
 status receive dropped 0
 status transmit bytes 574719737
 status transmit packets 1417516
 status transmit errors 0
 status transmit dropped 0
 status transmit collisions 0
 address 127.0.0.1
  prefix-length 8
 !
!
```

---

<div class="post-metadata">

### Author: ![khan](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@khan](https://dmap-community.ductus.global/u/khan)
#### Post date: [February 3, 2017, 4:36am UTC](https://dmap-community.ductus.global/t/how-to-display-config-true-leafs-is-default-show/996/4 "2017-02-03T04:36:52Z")

</div>

hi ,  
in my requirement i want to display both config false and config true leafs as part of single show command…  
list abc{  
key name

leaf name{  
…  
}  
leaf ip{  
…  
}  
leaf status{  
config false;  
}

when ever i do show on above list.  
ex…  
#show abc  
name : example  
ip :0.0.0.0  
status :reject

i want to above output,is this possible??

---

<div class="post-metadata">

### Author: ![cohult](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/cohult/32/221_2.png) [@cohult](https://dmap-community.ductus.global/u/cohult)
#### Post date: [February 3, 2017, 8:37am UTC](https://dmap-community.ductus.global/t/how-to-display-config-true-leafs-is-default-show/996/5 "2017-02-03T08:37:40Z")

</div>

You need to implement something yourself as that feature is not available in a c-style CLI.

For example, if you are ok with using the confd\_load command and have the user just provide a keypath, you could put something like this in your clispec

```auto
    <cmd name="show-all">
      <info>Show config and oper data</info>
      <help>Run confd_load -o -F c -p /your/path/here.</help>
      <callback>
        <exec>
          <osCommand>confd_load</osCommand>
          <args>-u $(user) -g $(groups) -o -F c</args>
          <options>
            <uid>confd</uid>
          </options>
        </exec>
      </callback>
      <params>
        <param>
          <info>&lt;path&gt;</info>
          <help>/path/to/show.</help>
          <flag>-p</flag>
        </param>
      </params>
    </cmd>

```
