MCPcopy Create free account
hub / github.com/apache/cloudstack / get_libvirt_connection

Function get_libvirt_connection

scripts/vm/network/security_group.py:82–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81
82def get_libvirt_connection():
83 conn = libvirt.openReadOnly(driver)
84 if not conn:
85 raise Exception('Failed to open connection to the hypervisor')
86
87 return conn
88
89
90def virshlist(states):

Callers 3

virshlistFunction · 0.85
virshdumpxmlFunction · 0.85
get_vm_idFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected