def METHOD_NAME(domain_info, uuid):
    """
    On the host assigns adapter and domain so that it becomes
    available in the guest
    :param domain_info: CARD.DOMAIN to be assigned
    :param uuid: The mediated device' UUID
    """
    path = get_mediated_device_path(uuid)
    adapter, domain = domain_info.split(".")
    cmds = ["echo 0x%s > %s/assign_adapter" % (adapter, path),
            "echo 0x%s > %s/assign_domain" % (domain, path),
            "echo 0x%s > %s/assign_control_domain" % (domain, path)]
    for cmd in cmds:
        err, out = cmd_status_output(cmd, shell=True, verbose=True)
        if err:
            raise TestError("Couldn't set attribute: %s" % out)
    return