cinder.interface.volume_snapshot_revert module¶
Revert to snapshot capable volume driver interface.
-
class
VolumeSnapshotRevertDriver
¶ Bases:
cinder.interface.base.CinderInterface
Interface for drivers that support revert to snapshot.
-
revert_to_snapshot
(context, volume, snapshot)¶ Revert volume to snapshot.
Note: the revert process should not change the volume’s current size, that means if the driver shrank the volume during the process, it should extend the volume internally.
- Parameters
context – the context of the caller.
volume – The volume to be reverted.
snapshot – The snapshot used for reverting.
-