Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ntc_templates/templates/cisco_ios_show_endpoint-tracker.textfsm
Original file line number Diff line number Diff line change
@@ -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
Comment on lines +8 to +12
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sjhloco
Similar to my note on PR #2218, it might not be necessary for an extra State for a simple template. We can assess 2218 and figure out what fits. Thank you!

Suggested change
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
Start
^Interface\s+Record\s+Name\s+Status\s+RTT
^\s*${INTERFACE}\s+${NAME}\s+${STATUS}\s+${RTT}\s+${PROBE_ID}\s+${NEXT_HOP} -> Record

^\s*$$
^. -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"