Esempio n. 1
0
def destroy_vm(vm_uuid, session_uuid=None):
    action = api_actions.DestroyVmInstanceAction()
    action.uuid = vm_uuid
    action.timeout = 240000
    test_util.action_logger('Destroy VM [uuid:] %s' % vm_uuid)
    evt = account_operations.execute_action_with_session(action, session_uuid)
    return evt.inventory
Esempio n. 2
0
def destroy_vrouter(vrouter_uuid, session_uuid=None):
    action = api_actions.DestroyVmInstanceAction()
    action.uuid = vrouter_uuid
    action.timeout = 12000
    test_util.test_logger('Destroy vRouter uuid: {}'.format(vrouter_uuid))
    result = acc_ops.execute_action_with_session(action, session_uuid)
    return result.success
Esempio n. 3
0
def destroy_vm(http_server_ip, vm_uuid, session_uuid=None):
    action = api_actions.DestroyVmInstanceAction()
    action.uuid = vm_uuid
    action.timeout = 240000
    test_util.action_logger('Destroy VM [uuid:] %s' % vm_uuid)
    evt = execute_action_with_session(http_server_ip, action, session_uuid)