def METHOD_NAME(dev_type):
    """
    Set up test.
    1) Remove interface devices
    2) Set VM attrs
    3) Add an interface
    :param dev_type: interface type
    """
    libvirt_vmxml.remove_vm_devices_by_type(vm, 'interface')
    vm_attrs = eval(params.get('vm_attrs', '{}'))
    vmxml = vm_xml.VMXML.new_from_dumpxml(vm_name)
    vmxml.setup_attrs(**vm_attrs)
    vmxml.sync()
    test.log.debug("Updated VM xml: %s.",
                   vm_xml.VMXML.new_from_dumpxml(vm_name))
    iface_dict = eval(params.get('iface_dict', "{'source': {'dev':'/dev/vhost-vdpa-0'}}"))
    iface_dev = interface_base.create_iface(dev_type, iface_dict)
    libvirt.add_vm_device(vm_xml.VMXML.new_from_dumpxml(vm_name), iface_dev)
    test.log.debug("VM xml afater updating ifaces: %s.",
                   vm_xml.VMXML.new_from_dumpxml(vm_name))