Skip to content

Commit 81dc3b1

Browse files
akira6592mjbear
andauthored
Fix cisco_ios_traceroute for no VRF info (#2205)
* fix cisco_ios_traceroute * remove VRF and add Error directive * Remove Error directive from Entries state Remove Error directive from Entries state since the Record line matches anything before it reaches the Error directive. The Error directive in Entries is not needed. --------- Co-authored-by: Michael Bear <[email protected]>
1 parent 9227a8c commit 81dc3b1

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

ntc_templates/templates/cisco_ios_traceroute.textfsm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Value DETAILS (.*)
2020

2121
Start
2222
^Type\s+escape
23-
^Tracing\s+the\s+route
24-
^VRF\s+info: -> Entries
23+
^Tracing\s+the\s+route -> Entries
2524
^\s*$$
2625
^\s*$$
2726
^. -> Error
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Type escape sequence to abort.
2+
Tracing the route to 172.16.1.9
3+
4+
1 192.168.1.1 0 msec 0 msec 0 msec
5+
2 172.16.1.1 8 msec 0 msec 0 msec
6+
3 172.16.1.9 8 msec 8 msec 0 msec
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
parsed_sample:
3+
- details: ""
4+
fqdn: ""
5+
hop_num: "1"
6+
ip_address: "192.168.1.1"
7+
rtt_response:
8+
- "0"
9+
- "0"
10+
- "0"
11+
- details: ""
12+
fqdn: ""
13+
hop_num: "2"
14+
ip_address: "172.16.1.1"
15+
rtt_response:
16+
- "8"
17+
- "0"
18+
- "0"
19+
- details: ""
20+
fqdn: ""
21+
hop_num: "3"
22+
ip_address: "172.16.1.9"
23+
rtt_response:
24+
- "8"
25+
- "8"
26+
- "0"

0 commit comments

Comments
 (0)