Setting array of interface to config_db inside a class

Sub-interface:


interface sub_if();

req_ack_if req_ack_intf();
logic abcd;
//etc etc
endinterface : sub_if


Top interface :


interface top_if();
parameter NUM_INTF = 10;

sub_if sub_intf[NUM_INTF-1:0]();

endinterface : top_if

I am able to use

top_intf.sub_intf[0].req_ack_intf

while calling config_db::set inside ENV, but not inside a for loop as shown in my previous post.