From b65505e51a345e0aa605b14b0893931658c479b0 Mon Sep 17 00:00:00 2001 From: Jacob McGill <9847006+jmcgill298@users.noreply.github.com> Date: Mon, 12 Aug 2024 12:25:45 -0400 Subject: [PATCH] ASA - Fix directly connected on next line (#1821) --- ntc_templates/templates/cisco_asa_show_route.textfsm | 3 ++- tests/cisco_asa/show_route/cisco_asa_show_route.raw | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ntc_templates/templates/cisco_asa_show_route.textfsm b/ntc_templates/templates/cisco_asa_show_route.textfsm index 7f317a67fc..4c49a4a778 100644 --- a/ntc_templates/templates/cisco_asa_show_route.textfsm +++ b/ntc_templates/templates/cisco_asa_show_route.textfsm @@ -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 diff --git a/tests/cisco_asa/show_route/cisco_asa_show_route.raw b/tests/cisco_asa/show_route/cisco_asa_show_route.raw index 3a80b7d107..6dcb59c2a0 100644 --- a/tests/cisco_asa/show_route/cisco_asa_show_route.raw +++ b/tests/cisco_asa/show_route/cisco_asa_show_route.raw @@ -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 \ No newline at end of file +C 192.168.2.0 255.255.255.0 + is directly connected, inside