def update_vthunder(self, id, project_id, device_name, username, password, ip_address, undercloud=None, axapi_version=30):
    if (axapi_version == 2.1):
        axapi_version = 21
    else:
        axapi_version = 30
    if ((undercloud == 'True') or (undercloud == 'true')):
        undercloud = True
    else:
        undercloud = False
    db_session = db_apis.get_session()
    vthunder = self.vthunder_repo.update(db_session, id, project_id=project_id, device_name=device_name, username=username, password=password, ip_address=ip_address, undercloud=undercloud, axapi_version=axapi_version)
    db_apis.close_session(db_session)
    print('vThunder entry updated successfully.')
def update_vthunder(self, id, project_id, device_name, username, password, ip_address, undercloud=None, axapi_version=30):
    if (axapi_version == 2.1):
        axapi_version = 21
    else:
        axapi_version = 30
    if ((undercloud == 'True') or (undercloud == 'true')):
        undercloud = True
    else:
        undercloud = False
    db_session = db_apis.get_session()
    vthunder = self.vthunder_repo.update(db_session, id, project_id=project_id, device_name=device_name, username=username, password=password, ip_address=ip_address, undercloud=undercloud, axapi_version=axapi_version)
    db_apis.close_session(db_session)
    print('vThunder entry updated successfully.')