def get_dst_port(setup_info, direction, interface_type, second_port=False):
    """
    return destination port ids based on test case direction and interface_type
    :param setup_info: setup info fixture
    :param direction: 'host-tor', 'leaf-tor'
    :param interface_type: type of interface
    :param second_port: boolean if second port id needs to be returned
    :return: destination port ids
    """
    if direction == 'leaf-tor':
        if second_port:
            return [setup_info[interface_type]['inner_port_id'][0] + 1]
        return setup_info[interface_type]['inner_port_id']
    return setup_info[interface_type]['outer_port_id']