~gundlach/nova/install-tools-pep8-fix

« back to all changes in this revision

Viewing changes to nova/virt/connection.py

  • Committer: Tarmac
  • Author(s): Ewan Mellor
  • Date: 2010-08-16 18:18:16 UTC
  • mfrom: (145.7.8 xenapi)
  • Revision ID: hudson@openstack.org-20100816181816-8weqolqfovaj0g7j
Added documentation for the nova.virt connection interface, a note about the need to chmod the objectstore script, and a reference for the XenAPI module.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
 
29
29
def get_connection(read_only=False):
 
30
    """Returns an object representing the connection to a virtualization
 
31
    platform.  This could be nova.virt.fake.FakeConnection in test mode,
 
32
    a connection to KVM or QEMU via libvirt, or a connection to XenServer
 
33
    or Xen Cloud Platform via XenAPI.
 
34
 
 
35
    Any object returned here must conform to the interface documented by
 
36
    FakeConnection.
 
37
    """
 
38
 
30
39
    # TODO(termie): maybe lazy load after initial check for permissions
31
40
    # TODO(termie): check whether we can be disconnected
32
41
    t = FLAGS.connection_type