Collect yang param names

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

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.