dmulyalin / ttp

Template Text Parser
MIT License
351 stars 34 forks source link

Hello everyone, how do I parse import_RT and export_RT in the following configuration file using TTP. #100

Closed bobo-xiaopeng closed 1 year ago

bobo-xiaopeng commented 1 year ago

vrf TEST_VOICE address-family ipv4 unicast import route-target 11111:99120 22222:12310 ! export route-target 33333:99901 44444:13210 ! ! ! vrf TestBGP address-family ipv4 unicast import route-target 55555:9999 ! export route-target 66666:9999 ! ! ! vrf TEST_VIDEO address-family ipv4 unicast import route-target 77777:102000 aaaaa:DDDDD ! export route-target 88888:102000 CCCCC:1038 ! ! !

dmulyalin commented 1 year ago

Hi, have a look at this template - https://github.com/dmulyalin/ttp_templates/blob/7b4f847103955dbbaec54e3e0b9ee2073879f3f5/ttp_templates/misc/Netbox/parse_cisco_xr_config.txt#L123 - think it might be useful for your use case.