code: def parse_config_output(self, output):
          
          regexp = re.compile('^(config |edit |set |end$|next$)(.*)')
          current_block = self
  
          if isinstance(output, py23_compat.string_types):
              output = output.splitlines()
  
          for line in output:
              if 'uuid' in line:
                  continue
              if 'snmp-index' in line:
                  continue
              line = line.strip()
              result = regexp.match(line)
  
              if result is not None:
                  action = result.group(1).strip()
                  data = result.group(2).strip()
  
                  if action == 'config' or action == 'edit':
                      data = data.replace('"', '')
                      if data not in current_block.get_block_names():
                          config_block = FortiConfig(data, action, current_block)
                          current_block[data] = config_block
                      else:
                          config_block = current_block[data]
                      current_block = config_block
                  elif action == 'end' or action == 'next':
                      current_block = current_block.get_parent()
                  elif action == 'set':
                      split_data = data.split(' ')
                      parameter = split_data[0]
                      data = split_data[1:]
                      current_block.set_param(parameter, ' '.join(data))
docs: This method will parse a string containing FortiOS config and will load it into the current
          :class:`~pyFG.forticonfig.FortiConfig` object.
  
          Args:
              - **output** (string) - A string containing a supported version of FortiOS config