Training
Bootcamp
Courses
Tech Sessions
Resources
Blog
Tips
GitHub
YouTube
Newsletter
Playgrounds
Pricing
Sign In
Become Member
TTP Parser
Validate and test the parsing of your TTP templates
Tools
J2 Renderer
TTP Parser
TextFSM Parser
XPath Tester
Members Only
JMESPath Validator
JSON Schema Validator
Data Format Converter
TTP Template
<group name="data"> <group name="bgp"> router bgp {{ oc_bgp_global_config_as | DIGIT }} nsr{{ ocx_bgp_global_nsr_config_enabled | set("true") }} bgp router-id {{ oc_config_router__id | IP }} bgp cluster-id {{ oc_config_cluster__id | IP }} bgp confederation identifier {{ oc_global_confederation_config_identifier | DIGIT }} bgp confederation peers {{ oc_config_member__as* | DIGIT }} no bgp log neighbor changes disable{{ oc__neighbor__changes | set("false") }} bgp graceful-restart{{ oc__restart_config_enabled | set("true") }} bgp graceful-restart restart-time {{ oc_config_restart__time | DIGIT }} bgp graceful-restart stalepath-time {{ oc__routes__time | DIGIT }} timers bgp {{ oc__bgp__keepalive | DIGIT }} {{ oc__bgp__holdtime | DIGIT }} bgp scan-time {{ oc_config_scan__time | DIGIT }} socket send-buffer-size {{ oc_socket_send_buffer_size | DIGIT }} socket receive-buffer-size {{ oc_socket_receive_buffer_size | DIGIT }} bgp bestpath as-path ignore{{ oc__path__ignore | set("true") }} bgp bestpath as-path multipath-relax{{ oc__paths_config_enabled | set("true") }} bgp bestpath aigp ignore{{ oc_config_aigp__ignore | set("true") }} bgp bestpath compare-routerid{{ oc_config_compare__routerid | set("true") }} bgp bestpath cost-community ignore{{ oc__community__ignore | set("true") }} bgp bestpath med always{{ oc__always__compare | set("true") }} bgp bestpath med confed{{ oc_config_med__confed | set("true") }} bgp bestpath med missing-as-worst{{ oc__as__worst | set("true") }} bgp default local-preference {{ oc__local__preference | DIGIT }} bgp update-delay {{ oc_config_update__delay | DIGIT }} bgp unsafe-ebgp-policy{{ ocx_bgp_unsafe__ebgp__policy | set("true") }} bgp enforce-first-as disable{{ oc__first__as | set("false") }} bgp fast-external-fallover disable{{ oc__external__fallover | set("false") }} bgp maximum neighbor {{ oc_config_maximum__neighbor | DIGIT }} update limit {{ oc_config_update__limit | DIGIT }} tcp mss {{ oc_config_tcp__mss | DIGIT }} </group> </group>
0
/ 20000
Raw Text
router bgp 65001 vrf CUSTOMER-A rd 65001:100 address-family ipv4 unicast redistribute connected label mode per-ce ! neighbor 192.168.100.1 remote-as 65100 address-family ipv4 unicast route-policy CUST-A-IN in route-policy CUST-A-OUT out ! ! neighbor 192.168.100.2 remote-as 65100 address-family ipv4 unicast route-policy CUST-A-IN in route-policy CUST-A-OUT out ! ! ! !
0
/ 20000
Result
[ {} ]
Parse
Share
Auto-Sync