~annegentle/nova/extdoc

« back to all changes in this revision

Viewing changes to nova/virt/driver.py

  • Committer: vladimir.p
  • Date: 2011-08-26 02:18:46 UTC
  • mfrom: (1499 nova)
  • mto: This revision was merged to the branch mainline in revision 1502.
  • Revision ID: vladimir@zadarastorage.com-20110826021846-rrqtmv3ynu3bhg3n
merged with rev.1499

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
        that it was before this call began.
141
141
 
142
142
        :param context: security context
143
 
        :param instance: Instance of {nova.compute.service.Instance}.
 
143
        :param instance: Instance object as returned by DB layer.
144
144
                         This function should use the data there to guide
145
145
                         the creation of the new instance.
146
146
        :param network_info:
152
152
    def destroy(self, instance, network_info, cleanup=True):
153
153
        """Destroy (shutdown and delete) the specified instance.
154
154
 
155
 
        The given parameter is an instance of nova.compute.service.Instance,
156
 
 
157
155
        If the instance is not found (for example if networking failed), this
158
156
        function should still succeed.  It's probably a good idea to log a
159
157
        warning in that case.
160
158
 
161
 
        :param instance: Instance of {nova.compute.service.Instance} and so
162
 
                         the instance is being specified as instance.name.
 
159
        :param instance: Instance object as returned by DB layer.
163
160
        :param network_info:
164
161
           :py:meth:`~nova.network.manager.NetworkManager.get_instance_nw_info`
165
162
        :param cleanup:
171
168
    def reboot(self, instance, network_info):
172
169
        """Reboot the specified instance.
173
170
 
174
 
        :param instance: Instance of {nova.compute.service.Instance} and so
175
 
                         the instance is being specified as instance.name.
 
171
        :param instance: Instance object as returned by DB layer.
176
172
        :param network_info:
177
173
           :py:meth:`~nova.network.manager.NetworkManager.get_instance_nw_info`
178
174
        """
240
236
        """
241
237
        Snapshots the specified instance.
242
238
 
243
 
        The given parameter is an instance of nova.compute.service.Instance,
244
 
        and so the instance is being specified as instance.name.
245
 
 
246
 
        The second parameter is the name of the snapshot.
 
239
        :param context: security context
 
240
        :param instance: Instance object as returned by DB layer.
 
241
        :param image_id: Reference to a pre-created image that will
 
242
                         hold the snapshot.
247
243
        """
248
244
        raise NotImplementedError()
249
245