'Replace the disk attached to the instance.'

def swap_volume(self, old_connection_info, new_connection_info, instance, mountpoint, resize_to):

    instance_name = instance.name
    if (instance_name not in self._mounts):
        self._mounts[instance_name] = {}
    self._mounts[instance_name][mountpoint] = new_connection_info
