'Creates a new backup target from an existing node
:param node: The Node to backup
:type  node: ``Node``
:param type: Backup target type (Physical, Virtual, ...).
:type type: :class:`BackupTargetType`
:param extra: (optional) Extra attributes (driver specific).
:type extra: ``dict``
:rtype: Instance of :class:`BackupTarget`'

def create_target_from_node(self, node, type=BackupTargetType.VIRTUAL, extra=None):

    disks = node.extra['disks']
    if (disks is not None):
        return self.create_target(name=node.name, address=disks[0]['source'], type=BackupTargetType.VOLUME, extra=None)
    else:
        raise RuntimeError('Node    does    not    have    any    block    devices')
