def correct_vs_ref(self, avi_config):
    '\n        This method corrects the reference of VS to different objects\n        :param avi_config: avi configuration dict\n        :return:\n        '
    global csv_writer_dict_list
    avi_graph = self.make_graph(avi_config)
    csv_dict_sub = [row for row in csv_writer_dict_list if ((row['Netscaler Command'] not in ('add lb vserver', 'add cs vserver')) and (row['Status'] in (STATUS_PARTIAL, STATUS_SUCCESSFUL)))]
    for dict_row in csv_dict_sub:
        obj = dict_row['AVI Object']
        if (isinstance(obj, str) and obj.startswith('{')):
            vs = []
            if ('__/__' in obj):
                for dataobj in obj.split('__/__'):
                    obj = eval(dataobj)
                    self.add_vs_ref(obj, avi_graph, vs)
            else:
                obj = eval(obj)
                self.add_vs_ref(obj, avi_graph, vs)
            if vs:
                dict_row['VS Reference'] = str(list(set(vs)))
            else:
                dict_row['VS Reference'] = STATUS_NOT_IN_USE
This method corrects the reference of VS to different objects
:param avi_config: avi configuration dict
:return:
def correct_vs_ref(self, avi_config):
    '\n        This method corrects the reference of VS to different objects\n        :param avi_config: avi configuration dict\n        :return:\n        '
    global csv_writer_dict_list
    avi_graph = self.make_graph(avi_config)
    csv_dict_sub = [row for row in csv_writer_dict_list if ((row['Netscaler Command'] not in ('add lb vserver', 'add cs vserver')) and (row['Status'] in (STATUS_PARTIAL, STATUS_SUCCESSFUL)))]
    for dict_row in csv_dict_sub:
        obj = dict_row['AVI Object']
        if (isinstance(obj, str) and obj.startswith('{')):
            vs = []
            if ('__/__' in obj):
                for dataobj in obj.split('__/__'):
                    obj = eval(dataobj)
                    self.add_vs_ref(obj, avi_graph, vs)
            else:
                obj = eval(obj)
                self.add_vs_ref(obj, avi_graph, vs)
            if vs:
                dict_row['VS Reference'] = str(list(set(vs)))
            else:
                dict_row['VS Reference'] = STATUS_NOT_IN_USE