Skip to content

Releases: dmulyalin/ttp

0.9.5

25 Jun 00:31
Compare
Choose a tag to compare

ENHANCEMENT

  1. group to_int function improved handling of missing keys, #109
  2. group to_int function added support to handle list of integers conversion, #109
  3. group to_int function improved best effort conversion logic to not fail on any conversion error at all

0.9.4

23 Apr 13:37
Compare
Choose a tag to compare

BUGS

  1. Better fix for issue #103 and fix for issue #95

0.9.3

15 Apr 09:17
Compare
Choose a tag to compare

BUGS

  1. Fix issue #103 - introduced login to not run validation check for group function for group tail match results
  2. Fix for issue #97 - improoved path formatters handling when match variable contains *
  3. Fix issue #98 - improoved pat formatters handling when match variable contains \

CHANGES

  1. For debug output excluded 'ttp' dictionary from variables, groups and template objects to not clutter the output

0.9.2

04 Dec 01:33
Compare
Choose a tag to compare

BUGS

  1. Fix for issue #94

FEATURES

  1. Added match variable copy funtion
  2. Added new ttp parser method get_templates to emit fully constructed templates after processing all extend tags

0.9.1

11 Jul 08:13
Compare
Choose a tag to compare

BUGS

  1. Fix issue #77 - problem was with start regex selection preference logic, updated that logic to account for use case when same line matched by multiple start re and one of the matches already has parent group started, selection logic updated to prefer such a match as opposed to previously it was simply continuing to next match.

0.9.0

13 Jun 08:52
Compare
Choose a tag to compare

CHANGES

  1. Removed input sources feature together with Nornir and Netmiko sources as TTP integrated well with Netmiko and Nornir supported was of version 2.5.0, while there is Nornir 3 was released, removing input sources feature as it does not seems to add much value.
  2. Switches dependency management, packaging and virtual environment management to Poetry.

FEATURES

  1. Added full installation extras i.e. pip install ttp[full] can now install all optional dependencies of versions that has been tested.
  2. Added extend tag support for macro function to apply arbitrary Python function on template content before including it into parent template.
  3. Added support to use TTP_TEMPLATES_DIR environment variable, TTP can source templates files from that directory for extend tag or on ttp object instantiation.

BUG

  1. Implemented fix for #69 to properly process joinmatch results for parent groups.

0.8.4

15 Jan 23:42
Compare
Choose a tag to compare

BUGS

  1. Fixed issue #65, the problem was with edge-case handling when add function called but result belongs to parent group, updated logic to make sure current group properly
    saved, ended and new group started out of previous group results, moreover, results saving logic modified to perform recursive merge in such a case.
  2. Added fix for issue #67 by introducing TTP object boolean switch argument dynamic_path_key_to_int

0.8.3

30 Dec 00:01
Compare
Choose a tag to compare

BUGS

  1. Fixed issue #66

0.8.2

17 Dec 23:04
Compare
Choose a tag to compare

BUGS

  1. Looks like TTP was not thread safe, tested using thread pool executor set to 800 threads with having group function containsall and output formatter, seems that one thread overwrites ttp dictionary for other threads somehow, not sure why it happens, multiprocessing is turned off, this issue pertains to github issue #63 as well. Was able to fix the problem by removing ttp dictionary from TTP module global scope and making it TTP class attribute instead, have to pass it around now as an argument for all classes instantiation. But threading issue seems gone after that.

CHANGES

  1. Code checks and linting added using pre-commit, work in progress.

0.8.1

17 Oct 11:37
Compare
Choose a tag to compare

BUGS

  1. Fixed #59
  2. Added fixes for #57 _headers_ indicator handling
  3. Fixed _anonymous_ group_id formation to improve results selection logic an allow anonymous group to re-start the group even if previous matches filtered
  4. Fixed issue #57 with ...* producing empty results when group does not contain matches but only _start_ statement, this was due to how ...* list path formatter was handled,
    fix makes sure to check if result data is not empty and skip saving them if so.

FEATURES

  1. Added _headers_ indicator columns variable to indicate how many mandatory columns expect to match

CHANGES

  1. Updated logic around results selection for multiple _start_ vs _startempty_ matches to make latter one always more preferred
  2. Updated selection logic for multiple add matches to make sure that we selecting results for group that already started
  3. Updated logic for _end_ and locked groups tracking to use self.ended_groups set