# Collect yang param names

**URL:** <https://dmap-community.ductus.global/t/collect-yang-param-names/619>\
**Category:** YANG\
**Created:** [August 8, 2016, 10:21am UTC](https://dmap-community.ductus.global/t/collect-yang-param-names/619 "2016-08-08T10:21:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhirasasi](https://avatars.discourse-cdn.com/v4/letter/m/b9bd4f/32.png) [@madhirasasi](https://dmap-community.ductus.global/u/madhirasasi)\
**Post date:** [August 8, 2016, 10:21am UTC](https://dmap-community.ductus.global/t/collect-yang-param-names/619/1 "2016-08-08T10:21:47Z")

</div>

Hi,  
“show address\_table lru 1 1”  
i was able to collect leaf key values giving from cli  
id = CONFD\_GET\_UINT16(&(keypath-\>v[1][0]));  
id1 = CONFD\_GET\_UINT16(&(keypath-\>v[1][1]));

container address\_table {  
list lru {  
tailf:callpoint olt;  
config false;  
tailf:cli-suppress-table;  
key “device\_index\_lru olt\_channel\_index”;  
leaf device\_index\_lru {  
config false;  
type uint16{  
range “0 … 15”;  
}  
}  
leaf olt\_channel\_index {  
config false;  
type uint16{  
range “0 … 3”;  
}  
}  
}  
}

Extension to above i have to implement  
"show address\_table lru 1 1 alarm-type (ip | mac | subnet … ) 1 1 "  
please help to collect name of alarm (ip | mac | subnet … ) instead of leaf values and yang modeling.

regards,  
madhira

---

<div class="post-metadata">

**Author:** ![waitai](https://yyz2.discourse-cdn.com/flex010/user_avatar/dmap-community.ductus.global/waitai/32/436_2.png) [@waitai](https://dmap-community.ductus.global/u/waitai)\
**Post date:** [August 8, 2016, 11:28pm UTC](https://dmap-community.ductus.global/t/collect-yang-param-names/619/2 "2016-08-08T23:28:03Z")

</div>

If I understand your question correctly, you would like to customize the show output command to take additional input parameters that aren’t part of the YANG model. The callpoint as defined in your data model will only receive the key values as possible input for the show query. In order to collect additional input parameters, you will need to add a custom CLI command. This feature is described in Chapter 16.21.6, Adding Custom show output, of the ConfD User Guide. You can specify the command parameters as described in Chapter 16.21.7 on Command parameters. You can find find an example under the examples.confd/cli/cli\_command directory that illustrates the use of the custom CLI command feature.
