'get existing info'

def get_existing(self):

    active_tmp = dict()
    inactive_tmp = dict()
    tcp_tmp = dict()
    self.get_exist_timer_out_para()
    if (self.timeout_type == 'active'):
        for active_tmp in self.existing['active_timeout']:
            if (self.state == 'present'):
                if (str(active_tmp[self.type]) != self.timeout_interval):
                    self.active_changed = True
            else:
                if (self.timeout_interval != '30'):
                    if (str(active_tmp[self.type]) != '30'):
                        if (str(active_tmp[self.type]) != self.timeout_interval):
                            self.module.fail_json(msg='Error:    The    specified    active    interval    do    not    exist.')
                if (str(active_tmp[self.type]) != '30'):
                    self.timeout_interval = active_tmp[self.type]
                    self.active_changed = True
    if (self.timeout_type == 'inactive'):
        for inactive_tmp in self.existing['inactive_timeout']:
            if (self.state == 'present'):
                if (str(inactive_tmp[self.type]) != self.timeout_interval):
                    self.inactive_changed = True
            else:
                if (self.timeout_interval != '30'):
                    if (str(inactive_tmp[self.type]) != '30'):
                        if (str(inactive_tmp[self.type]) != self.timeout_interval):
                            self.module.fail_json(msg='Error:    The    specified    inactive    interval    do    not    exist.')
                if (str(inactive_tmp[self.type]) != '30'):
                    self.timeout_interval = inactive_tmp[self.type]
                    self.inactive_changed = True
    if (self.timeout_type == 'tcp-session'):
        for tcp_tmp in self.existing['tcp_timeout']:
            if (str(tcp_tmp[self.type]) != self.state):
                self.tcp_changed = True
