Skip to content

Commit

Permalink
Fix networktocode#5: 'Detect INTERFACE for glean adjacency IOS 12.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakuza-UA committed May 10, 2020
1 parent 068f8e5 commit 59c822b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion templates/cisco_ios_show_ip_cef.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ Start
# Stop processing Flags (max 4)
^.*?epoch.*?$$
# Extract extra Flag, such as recursive
^.*?dependenc(?:y|ies),\s+${FLAGS}
^.*?dependenc(?:y|ies),\s+${FLAGS} -> Continue
^\s+via\s+${NEXTHOP},\s+\d+\s+dependenc
^\s+via\s+${INTERFACE},\s+\d+\s+dependenc
^\s+via\s+${NEXTHOP},\s+${INTERFACE},\s+\d+\s+dependenc
^.*?dependenc(?:y|ies)
# Extract Nexthop and Interface
^\s+next\s+hop\s+${NEXTHOP}\s*$$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ parsed_sample:
- "connected"
type: "glean"
nexthop: ""
interface: ""
interface: "GigabitEthernet0/1"
- prefix: "199.220.235.180/32"
flags:
- "receive"
Expand Down

0 comments on commit 59c822b

Please sign in to comment.