Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASA - Fix directly connected on next line #1821

Merged
merged 1 commit into from
Aug 12, 2024
Merged
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
3 changes: 2 additions & 1 deletion ntc_templates/templates/cisco_asa_show_route.textfsm
Original file line number Diff line number Diff line change
@@ -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
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
@@ -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