~cisco-openstack/nova/network-refactoring-l2

« back to all changes in this revision

Viewing changes to nova/virt/vmwareapi_conn.py

  • Committer: Ryu Ishimoto
  • Date: 2011-07-20 11:21:44 UTC
  • Revision ID: ryu@midokura.jp-20110720112144-tl0h0lrn7y3iubw8
Added network_info parameter to all the appropriate places in virt layers and compute manager

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
        """List VM instances."""
125
125
        return self._vmops.list_instances()
126
126
 
127
 
    def spawn(self, instance, network_info=None, block_device_mapping=None):
 
127
    def spawn(self, instance, network_info, block_device_mapping=None):
128
128
        """Create VM instance."""
129
129
        self._vmops.spawn(instance)
130
130
 
132
132
        """Create snapshot from a running VM instance."""
133
133
        self._vmops.snapshot(instance, name)
134
134
 
135
 
    def reboot(self, instance):
 
135
    def reboot(self, instance, network_info):
136
136
        """Reboot VM instance."""
137
137
        self._vmops.reboot(instance)
138
138
 
139
 
    def destroy(self, instance):
 
139
    def destroy(self, instance, network_info):
140
140
        """Destroy VM instance."""
141
141
        self._vmops.destroy(instance)
142
142