~0x44/nova/bug838466

« back to all changes in this revision

Viewing changes to nova/virt/driver.py

  • Committer: Brian Waldon
  • Date: 2011-07-26 17:13:41 UTC
  • mfrom: (1324 nova)
  • mto: This revision was merged to the branch mainline in revision 1326.
  • Revision ID: brian.waldon@rackspace.com-20110726171341-jrclqn08ew7ngshr
merging trunk; resolving conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        """Return a list of InstanceInfo for all registered VMs"""
62
62
        raise NotImplementedError()
63
63
 
64
 
    def spawn(self, instance, network_info=None, block_device_mapping=None):
 
64
    def spawn(self, instance, network_info, block_device_mapping=None):
65
65
        """Launch a VM for the specified instance"""
66
66
        raise NotImplementedError()
67
67
 
68
 
    def destroy(self, instance, cleanup=True):
 
68
    def destroy(self, instance, network_info, cleanup=True):
69
69
        """Destroy (shutdown and delete) the specified instance.
70
70
 
71
71
        The given parameter is an instance of nova.compute.service.Instance,
81
81
        """
82
82
        raise NotImplementedError()
83
83
 
84
 
    def reboot(self, instance):
 
84
    def reboot(self, instance, network_info):
85
85
        """Reboot specified VM"""
86
86
        raise NotImplementedError()
87
87
 
146
146
        """resume the specified instance"""
147
147
        raise NotImplementedError()
148
148
 
149
 
    def rescue(self, instance, callback):
 
149
    def rescue(self, instance, callback, network_info):
150
150
        """Rescue the specified instance"""
151
151
        raise NotImplementedError()
152
152
 
153
 
    def unrescue(self, instance, callback):
 
153
    def unrescue(self, instance, callback, network_info):
154
154
        """Unrescue the specified instance"""
155
155
        raise NotImplementedError()
156
156
 
224
224
        """
225
225
        raise NotImplementedError()
226
226
 
227
 
    def unfilter_instance(self, instance):
 
227
    def unfilter_instance(self, instance, network_info):
228
228
        """Stop filtering instance"""
229
229
        raise NotImplementedError()
230
230
 
253
253
    def set_host_enabled(self, host, enabled):
254
254
        """Sets the specified host's ability to accept new instances."""
255
255
        raise NotImplementedError()
 
256
 
 
257
    def plug_vifs(self, instance, network_info):
 
258
        """Plugs in VIFs to networks."""
 
259
        raise NotImplementedError()