Add s_domain elements and data from VM instances

This commit is contained in:
2018-06-02 15:03:44 -04:00
parent f61be2c30b
commit cbfd3a8a31
2 changed files with 20 additions and 2 deletions

View File

@ -28,7 +28,17 @@ class VMInstance:
if self.state != data.decode('ascii'):
self.state = data.decode('ascii')
self.manage_vm_state()
# Get data functions
def getdomuuid():
return self.domuuid
def getstate():
return self.state
def getdom():
return self.dom
# Start up the VM
def start_vm(self, conn, xmlconfig):
print("Starting VM %s" % self.domuuid)