How to disable sequencer using uvm_config_db?

In reply to rakesh2learn:

You are still ‘starting’ the eth_pkt_seq on the sequencer. You moved the starting of the sequence from:

e_seq.start (env.eth_agent.sqr);

to:

uvm_config_db#(uvm_object_wrapper)::set(this,"env.eth_agent.sqr.main_phase", "default_sequence", eth_pkt_seq::type_id::get());

Both of the above options will ‘start’ the sequence on the sequencer. Do not include the lines above and the sequencer will not run the eth_pkt_seq sequence.