ttp
ttp copied to clipboard
Template Text Parser
trying to parse some ios-xr 5.1.3 router interfaces and am running into a "KeyError:" issue whenever an interface has "secondary" IP's assigned to it. I think it may have something...
I noticed that the following code in the documentation is NOT providing the correct output: ``` template_1 = """ interface FastEthernet2.13 description Customer CPE interface ip address 10.12.13.1 255.255.255.0 vrf...
Potential bug: Rows from one table appear in the parsing of another when 1 row is added to a third
This is kind of a weird one. I am not sure if I am doing something wrong or if there is a bug in some of the `_start_/_end_` logic (or...
It seems that the cider_match is not checking all subnets in the list from the file but ONLY the last one: ``` interface Lo4 ip address 4.4.4.4 32 ! interface...
Here's a sample of something that works well: Template: ``` vlan 1234 name some_vlan vlan 5678 vlan 910 name one_more vlan 777 vlan {{ vlan }} name {{ name }}...
if I compile the script via pyInstaller, then when I run the exe file, an error occurs on the line `parser = ttp(data=SASData, template=SASTemplate)` ``` ttp.lazy_import_functions: failed to save cache...
Hello! The following command run in CLI do no show DEBUG output with plain regex. ` ttp -d "brocade_show_interface_example_data.txt" -t "brocade_show_interfaces_template.txt" -l DEBUG -o json | jq` input_data: https://gist.github.com/hikarikumo/1c34b91d26204d4127da1a45a62be049 ttp_tempate:...
Hi, Your library has saved me heaps of time on a script I needed, thank you so much for making this open source! Would it be okay if I contributed...
joinmatches() doesn't work when the lines it matched appear after some other lines that are matched by an embedded group. This is similar to the following issue: https://github.com/dmulyalin/ttp/issues/65 Example that...