From 649200bdda2422e2396b141802ceeebf69d2accc Mon Sep 17 00:00:00 2001 From: James Harr Date: Tue, 26 Nov 2024 23:30:14 -0600 Subject: [PATCH] feat(iosxr): Update XR output parsing to recognize "Previous State" in bgp output --- suzieq/config/textfsm_templates/iosxr_show_bgp_neigh.tfsm | 1 + 1 file changed, 1 insertion(+) diff --git a/suzieq/config/textfsm_templates/iosxr_show_bgp_neigh.tfsm b/suzieq/config/textfsm_templates/iosxr_show_bgp_neigh.tfsm index b32d228da2..f077c3d0a2 100644 --- a/suzieq/config/textfsm_templates/iosxr_show_bgp_neigh.tfsm +++ b/suzieq/config/textfsm_templates/iosxr_show_bgp_neigh.tfsm @@ -66,6 +66,7 @@ Start ^\s+Remote\s+router\s+ID\s+${peerRouterId} ^\s+Cluster\s+ID\s+${clusterId}\s*$$ ^\s+BGP\s+[Ss]tate\s+=\s+${state}(?:,\s+up\s+for\s+${estdTime})?\s*$$ + ^\s+[Pp]revious\s+[Ss]tate: ^\s+NSR\s+[Ss]tate:\s+(?:NSR\s+)?${nsrState}\s*$$ ^\s+BFD\s+enabled\s+\(session\s+${bfdStatus} ^\s+BFD\s+enabled\s+\(${bfdStatus}\)