diff --git a/ntc_templates/templates/cisco_ios_show_endpoint-tracker.textfsm b/ntc_templates/templates/cisco_ios_show_endpoint-tracker.textfsm new file mode 100644 index 0000000000..fd344b94a1 --- /dev/null +++ b/ntc_templates/templates/cisco_ios_show_endpoint-tracker.textfsm @@ -0,0 +1,14 @@ +Value INTERFACE (\S+) +Value NAME (\S+) +Value STATUS (\S+) +Value RTT (\d+) +Value PROBE_ID (\d+) +Value NEXT_HOP (\S+) + +Start + ^Interface\s+Record\s+Name\s+Status\s+RTT -> Tracker + +Tracker + ^\s*${INTERFACE}\s+${NAME}\s+${STATUS}\s+${RTT}\s+${PROBE_ID}\s+${NEXT_HOP} -> Record + ^\s*$$ + ^. -> Error \ No newline at end of file diff --git a/ntc_templates/templates/index b/ntc_templates/templates/index index f39b8a8252..a4d6b2bb77 100644 --- a/ntc_templates/templates/index +++ b/ntc_templates/templates/index @@ -299,6 +299,7 @@ cisco_ios_show_ip_vrf_interfaces.textfsm, .*, cisco_ios, sh[[ow]] ip vr[[f]] in[ cisco_ios_show_ipv6_access-lists.textfsm, .*, cisco_ios, sh[[ow]] ipv6 acce[[ss-lists]] cisco_ios_show_mac-address-table.textfsm, .*, cisco_ios, sh[[ow]] mac[[-address-table]] cisco_ios_show_ap_cdp_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ap c[[dp]] n[[eighbors]] +cisco_ios_show_endpoint-tracker.textfsm, .*, cisco_ios, sh[[ow]] endp[[oint-tracker]] cisco_ios_show_ip_bgp_neighbors.textfsm, .*, cisco_ios, sh[[ow]] ip bgp nei[[ghbors]] cisco_ios_show_ip_ospf_database.textfsm, .*, cisco_ios, sh[[ow]] ip ospf data[[base]] cisco_ios_show_ip_ospf_neighbor.textfsm, .*, cisco_ios, sh[[ow]] ip ospf nei[[ghbor]] diff --git a/tests/cisco_ios/show_endpoint-tracker/cisco_ios_show_endpoint-tracker.raw b/tests/cisco_ios/show_endpoint-tracker/cisco_ios_show_endpoint-tracker.raw new file mode 100644 index 0000000000..2378ed105f --- /dev/null +++ b/tests/cisco_ios/show_endpoint-tracker/cisco_ios_show_endpoint-tracker.raw @@ -0,0 +1,3 @@ +Interface Record Name Status RTT in msecs Probe ID Next Hop +GigabitEthernet1 trk_umbrella Up 2 1 10.44.22.1 +GigabitEthernet2 trk_goolge Up 2 1 10.2.2.1 \ No newline at end of file diff --git a/tests/cisco_ios/show_endpoint-tracker/cisco_ios_show_endpoint-tracker.yml b/tests/cisco_ios/show_endpoint-tracker/cisco_ios_show_endpoint-tracker.yml new file mode 100644 index 0000000000..47fa404e20 --- /dev/null +++ b/tests/cisco_ios/show_endpoint-tracker/cisco_ios_show_endpoint-tracker.yml @@ -0,0 +1,14 @@ +--- +parsed_sample: + - interface: "GigabitEthernet1" + name: "trk_umbrella" + next_hop: "10.44.22.1" + probe_id: "1" + rtt: "2" + status: "Up" + - interface: "GigabitEthernet2" + name: "trk_goolge" + next_hop: "10.2.2.1" + probe_id: "1" + rtt: "2" + status: "Up"