def METHOD_NAME(isis_common_setup_teardown):
    selected_connections = isis_common_setup_teardown
    (dut_host, dut_port, nbr_host, nbr_port) = selected_connections[0]
    # Get the 'last run elapsed' field to check whether this value exceed configured interval.
    # a. If it exceeds configured interval, when changing nbr metric, spf will run immediately.
    # b. If not, spf will pending, and when it exceeds configured interval, spf will run.
    wait_until(SPF_INTERVAL*5, 10, 0, wait_isis_spf_stable, dut_host)
    spf_summary = get_isis_spf_summary(dut_host)
    last_run_elapsed = get_isis_spf_last_run_elapsed(spf_summary)
    if spf_summary['spf_pending'] or last_run_elapsed <= SPF_INTERVAL:
        pytest.skip("IS-IS not in stable state")
    run_cnt = int(spf_summary['IPv4']['run_count'])
    # 1. trigger the first time, spf will run immediately
    nbr_host.set_isis_metric(nbr_port, '1000')
    spf_summary = get_isis_spf_summary(dut_host)
    check_isis_post_spf_cnt(spf_summary, run_cnt)
    # Check spf elapsed time refresh from 0
    last_run_elapsed = get_isis_spf_last_run_elapsed(spf_summary)
    pytest_assert(last_run_elapsed < SPF_INTERVAL,
                  'IS-IS SPF last run elapsed is not refreshed ({}).'
                  .format(last_run_elapsed))
    run_cnt = int(spf_summary['IPv4']['run_count'])
    # 2. trigger the second time, spf will in pending state
    nbr_host.no_isis_metric(nbr_port)
    nbr_host.set_isis_metric(nbr_port, '1000')
    nbr_host.no_isis_metric(nbr_port)
    spf_summary = get_isis_spf_summary(dut_host)
    pytest_assert(spf_summary['spf_pending'], 'IS-IS spf is not in pending state')
    # spf cnt will remain the same
    pytest_assert(run_cnt == int(spf_summary['IPv4']['run_count']),
                  'IS-IS SPF count number changed in pending state.(Pre: {}, Post: {})'
                  .format(spf_summary['IPv4']['run_count'], run_cnt))
    last_run_elapsed = get_isis_spf_last_run_elapsed(spf_summary)
    time.sleep(SPF_INTERVAL - last_run_elapsed)
    check_isis_post_spf_cnt(get_isis_spf_summary(dut_host), run_cnt)