How can I configure two agents with Active and Passive?

In reply to nirajsp47:

Hi nirajsp47, in agent1_config and agent2_config you have declared and assigned with UVM_ACTIVE and UVM_PASSIVE respectively(uvm_active_passive_enum is_active = UVM_ACTIVE / UVM_PASSIVE).

In base_test I am able to see equating the UVM_ACTIVE / UVM_PASSIVE again,
agt1_cfg.is_active = UVM_ACTIVE;
agt2_cfg.is_active = UVM_PASSIVE;

So may I know what is the reason of assigning two times?