~cerberus/nova/xs_migrations

« back to all changes in this revision

Viewing changes to nova/virt/xenapi_conn.py

  • Committer: Cerberus
  • Date: 2011-02-18 22:13:34 UTC
  • Revision ID: matt.dietz@rackspace.com-20110218221334-fej1a18uxk73xrj8
Pep8 cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
    def attach_disk(self, instance, disk_info):
193
193
        """Moves the copied VDIs into the SR"""
194
194
        return self._vmops.attach_disk(instance, disk_info)
195
 
    
 
195
 
196
196
    def suspend(self, instance, callback):
197
197
        """suspend the specified instance"""
198
198
        self._vmops.suspend(instance, callback)
220
220
    def get_ajax_console(self, instance):
221
221
        """Return link to instance's ajax console"""
222
222
        return self._vmops.get_ajax_console(instance)
223
 
        
 
223
 
224
224
    def get_host_ip_addr(self):
225
 
        xs_url = urlparse.urlparse(FLAGS.xenapi_connection_url) 
 
225
        xs_url = urlparse.urlparse(FLAGS.xenapi_connection_url)
226
226
        return xs_url.netloc
227
227
 
228
228
    def attach_volume(self, instance_name, device_path, mountpoint):