code: def _clitable_to_dict(objects, fsm_handler):
      '''
      Converts TextFSM cli_table object to list of dictionaries.
      '''
      objs = []
      log.debug('Cli Table:')
      log.debug(objects)
      log.debug('FSM handler:')
      log.debug(fsm_handler)
      for row in objects:
          temp_dict = {}
          for index, element in enumerate(row):
              temp_dict[fsm_handler.header[index].lower()] = element
          objs.append(temp_dict)
      log.debug('Extraction result:')
      log.debug(objs)
      return objf _clitable_to_dict(objects, fsm_handler):
      '''
      Converts TextFSM cli_table object to list of dictionaries.
      '''
      objs = []
      log.debug('Cli Table:')
      log.debug(objects)
      log.debug('FSM handler:')
      log.debug(fsm_handler)
      for row in objects:
          temp_dict = {}
          for index, element in enumerate(row):
              temp_dict[fsm_handler.header[index].lower()] = element
          objs.append(temp_dict)
      log.debug('Extraction result:')
      log.debug(objs)
      return objs
docs: Converts TextFSM cli_table object to list of dictionaries.