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