Config_db dynamic connection

In reply to dave_59:
Thanks Dave, I also want to change DUT values with respect to env[*] value, so that connection should be according to the different DUTs.

and how can I set these input/outputs simultaneously for different DUTs before run time.