Skip to content

Commit

Permalink
ASA - Fix directly connected on next line (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcgill298 authored Aug 12, 2024
1 parent dc2e505 commit b65505e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ntc_templates/templates/cisco_asa_show_route.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ ROUTES
# Match directly connected routes
^${PROTOCOL}\s${TYPE}\s+${NETWORK}\sis\sdirectly\sconnected,\s${NEXTHOPIF} -> Record
^${PROTOCOL}(\*){0,1}\s${TYPE}\s+${NETWORK}\s+${NETMASK}\sis\sdirectly\sconnected,\s${NEXTHOPIF} -> Record
^\s+is\sdirectly\sconnected,\s${NEXTHOPIF} -> Record
#
# Clear all variables on empty lines
^\s* -> Clearall
^\s*$$ -> Clearall
#^${TYPE} -> Continue.Record
#^${TYPE}\s+${NETWORK}\s+${NETMASK}\s+\[\d+\/\d+\]\s+via\s+${GATEWAY}\,\s+${UPTIME},\s+${INTFC}\s*$$ -> Record
#^\s+\[\d+\/\d+\]\s+via\s+${GATEWAY}\,\s+${UPTIME},\s+${INTFC}\s*$$ -> Record
Expand Down
3 changes: 2 additions & 1 deletion tests/cisco_asa/show_route/cisco_asa_show_route.raw
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ O E2 10.1.2.0 255.255.255.0 [170/3840] via 192.168.1.2, 2w6d, outside
O E2 10.1.3.0 255.255.255.0 [170/3840] via 192.168.1.2, 2w6d, outside
[170/3840] via 192.168.2.2, 2w6d, outside
C 192.168.1.0 255.255.255.0 is directly connected, outside
C 192.168.2.0 255.255.255.0 is directly connected, inside
C 192.168.2.0 255.255.255.0
is directly connected, inside

0 comments on commit b65505e

Please sign in to comment.