'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):

    return self.create_target(name=node.name, address=node.id, type=BackupTargetType.VIRTUAL, extra=extra)
