dmulyalin / ttp

Template Text Parser
MIT License
350 stars 34 forks source link

Parsing error (should not happen) #84

Closed hikarikumo closed 2 years ago

hikarikumo commented 2 years ago

Hello I have decided to parse show interfaces outputs obtained from Brocade VDX 6740 vcs fabric. The lines consists of Port-channel and Physical interfaces details. However using the TTP parsing Only 1 interface out of physical ones was received.

Please find python script below: https://gist.github.com/hikarikumo/db60f69c534969d90e76ffd0a13fefd4

hikarikumo commented 2 years ago

solved by changing the first line of template to: {{ interface | re(".*")}} is {{oper_status | re(".*")}}, line protocol is {{line_protocol | re(".*")}}