def update_profile_ref(self, ref, avi_obj, merge_obj_list):
    '\n        This method is used to update the profile references which was\n        attached at the time of creation\n        :param ref:\n        :param avi_obj:\n        :param merge_obj_list:\n        :return:\n        '
    for obj in avi_obj:
        obj_ref = obj.get(ref)
        tenant_ref = obj.get('tenant_ref')
        if obj_ref:
            name = self.get_name(obj_ref)
            tenant = self.get_name(tenant_ref)
            if (name in merge_obj_list):
                updated_name = merge_obj_list[name]
                if (ref == 'application_persistence_profile_ref'):
                    type_cons = OBJECT_TYPE_APPLICATION_PERSISTENCE_PROFILE
                if (ref == 'application_profile_ref'):
                    type_cons = OBJECT_TYPE_APPLICATION_PROFILE
                obj[ref] = self.get_object_ref(updated_name, type_cons, tenant)
This method is used to update the profile references which was
attached at the time of creation
:param ref:
:param avi_obj:
:param merge_obj_list:
:return:
def update_profile_ref(self, ref, avi_obj, merge_obj_list):
    '\n        This method is used to update the profile references which was\n        attached at the time of creation\n        :param ref:\n        :param avi_obj:\n        :param merge_obj_list:\n        :return:\n        '
    for obj in avi_obj:
        obj_ref = obj.get(ref)
        tenant_ref = obj.get('tenant_ref')
        if obj_ref:
            name = self.get_name(obj_ref)
            tenant = self.get_name(tenant_ref)
            if (name in merge_obj_list):
                updated_name = merge_obj_list[name]
                if (ref == 'application_persistence_profile_ref'):
                    type_cons = OBJECT_TYPE_APPLICATION_PERSISTENCE_PROFILE
                if (ref == 'application_profile_ref'):
                    type_cons = OBJECT_TYPE_APPLICATION_PROFILE
                obj[ref] = self.get_object_ref(updated_name, type_cons, tenant)