'Populate method'

def populate(self):

    super(Hardware, self).populate()
    data = self.responses[0]
    if data:
        self.facts['filesystems'] = re.findall('^Directory    of    (.*)/', data)[0]
        self.facts['flash_total'] = re.findall('(.*)    total', data)[0].replace(',', '')
        self.facts['flash_free'] = re.findall('total    \\((.*)    free\\)', data)[0].replace(',', '')
    data = self.responses[1]
    if data:
        memory_total = re.findall('Total    Memory    Used:    (.*)    Kbytes', data)[0]
        use_percent = re.findall('Memory    Using    Percentage:    (.*)%', data)[0]
        memory_free = str((int(memory_total) - ((int(memory_total) * int(use_percent)) / 100)))
        self.facts['memory_total'] = (memory_total + '    Kb')
        self.facts['memory_free'] = (memory_free + '    Kb')
    data = self.responses[2]
    if data:
        device_info = data.split('\n')
        tmp_device_info = device_info[4:(-1)]
        for item in tmp_device_info:
            tmp_item = item.split()
            if (len(tmp_item) == 8):
                self.facts[tmp_item[2]] = tmp_item[6]
            elif (len(tmp_item) == 7):
                self.facts[tmp_item[0]] = tmp_item[5]
