Skip to content

0.7.0

Compare
Choose a tag to compare
@dmulyalin dmulyalin released this 12 May 10:36
· 88 commits to master since this release

FEATURES

  1. Added support for file returner to format filename using ttp["vars"] and ttp["global_vars"] dictionaries, as a result filenames can now be formatted on a per results basis #41
  2. Added support to gethostname to extract hostname from Nokia SROS prompt #43
  3. Made regexes to account for \r\n ending in addition to \n to detect a new line #44
  4. Added support for excel formatter to update existing spreadsheets using "update" parameter
  5. Made ## comments to support indentation without generating log message
  6. Added outputters "condition" attribute to be able to run outputters conditionally based on variable in vars passed to TTP object

BUGS

  1. Improved behavior of results selection and fixed bug with same group name/path results selection by adding grp_id in self.record to track previous group identification #37
  2. Added support for \r\n line ending in addition to \n #44
  3. Fixed joinmatches to properly handle sanitized match variable names
  4. Fixed BUG with match result selection for multiple start re matches

CHANGES

  1. TTP Lazy importing system modified to use pickle module to cache ttp dictionary and to scan subfolders' files one by one,
    that is to avoid "OSError: [Errno 24] Too many open files" problem when TTP scans through folders to find all function;
    additionally, added caching functions to speed up initialization process roughly by 60ms.
  2. Output traverse function added "strict=True" boolean parameter, if True - traverse raises KeyError if no path item found
    in results, if False, will return empty dictionary if no item found in results
  3. Improved Syslog returner - wrapped sending logs to try-except blocks with logging of errors on failure
  4. Improved results path selection to use group.group_id instead of path and index attributes
  5. Generalized anonymous group name, path and group_id formation to account for nested/child anonymous groups
  6. Modified yangson validate behavior to return error if no yangson installed, added option to just return results without metadata if validation was successful