Container with multiple list enteries

module arpe {
namespace “http://tail-f.com/ns/example/arpe”;
prefix arpe;
import ietf-inet-types {
prefix inet;
}
import tailf-common {
prefix tailf;
}
container router_dev {
config false;
tailf:callpoint arpe;
list register {
key “device_index if_type device_address port_address register_address”;
max-elements 1024;
leaf device_index {
tailf:cli-expose-key-name;
type uint32;
}
leaf if_type {
tailf:cli-expose-key-name;
type uint32;
}
leaf device_address {
tailf:cli-expose-key-name;
type uint32;
}
leaf port_address {
tailf:cli-expose-key-name;
type uint32;
}
leaf register_address {
tailf:cli-expose-key-name;
type uint32;
}
}
list register2 {
key “timeinterval recycletime”;
max-elements 1024;
leaf timeinterval {
tailf:cli-expose-key-name;
type uint32;
}
leaf recycletime {
tailf:cli-expose-key-name;
type uint32;
}
}
}
}

From the above yang model suppose I added one more list register2 under the same container router_dev.

From the cli if i give the inputs to list resgister2

hp-flare1# show router_dev register2 timeinterval 1
------------------------------------------------------------^
syntax error: unknown argument

From the application I am getting the below error:
TRACE CALL trans init(thandle=6,mode=“r”,db=running) --> CONFD_OK
TRACE CALL data get_elem(thandle=6,/router_dev/register2{1}/timeinterval)
$$$$$ timeinterval
arpstat: arpstat.c:364: get_elem: Assertion `(&(keypath->v[2][0]))->type == C_UINT32’ failed.
Aborted (core dumped)
make: *** [start] Error 134

The get_element callback code is below:
case arpe_timeinterval:
{
printf("\n $$$$$ timeinterval") ;
int keep_alive = CONFD_GET_UINT32(&(keypath->v[2][0]));
printf("\n\t timeinterval =%d \n", timeinterval);
break;
}

Please suggest me further how to modify the existing code under case arpe_timeinterval for the keypath value from the API CONFD_GET_UINT32 ? and any modification I need to do in the get_next or get_elem call back ?

See last comment in your previous post Show command with multiple input from cli