From 54bf6112a9ea0eb7d91d4a53c42171e9aaf11ea5 Mon Sep 17 00:00:00 2001 From: Samantha Tesla Date: Thu, 27 Jul 2023 15:24:11 -0500 Subject: [PATCH 1/2] some 7124sx do not output anything for pfxrcd --- .../arista_eos_show_ip_bgp_summary.textfsm | 1 + .../arista_eos_show_ip_bgp_summary4.raw | 1 + .../arista_eos_show_ip_bgp_summary4.yml | 14 ++++++++++++++ 3 files changed, 16 insertions(+) diff --git a/ntc_templates/templates/arista_eos_show_ip_bgp_summary.textfsm b/ntc_templates/templates/arista_eos_show_ip_bgp_summary.textfsm index c022ff3d29..b0f27326d7 100644 --- a/ntc_templates/templates/arista_eos_show_ip_bgp_summary.textfsm +++ b/ntc_templates/templates/arista_eos_show_ip_bgp_summary.textfsm @@ -26,6 +26,7 @@ Start ^\s+${BGP_NEIGH}\s+\d+\s+${NEIGH_AS}\s+${MSG_RCVD}\s+${MSG_SENT}\s+${IN_QUEUE}\s+${OUT_QUEUE}\s+${UP_DOWN}\s+${STATE}\s* -> Record ^${BGP_NEIGH}\s+\d+\s+${NEIGH_AS}\s+${MSG_RCVD}\s+${MSG_SENT}\s+${IN_QUEUE}\s+${OUT_QUEUE}\s+${UP_DOWN}\s+${STATE}\s+${STATE_PFXRCD} -> Record ^${BGP_NEIGH}\s+\d+\s+${NEIGH_AS}\s+${MSG_RCVD}\s+${MSG_SENT}\s+${IN_QUEUE}\s+${OUT_QUEUE}\s+${UP_DOWN}\s+${STATE_PFXRCD} -> Record + ^${BGP_NEIGH}\s+\d+\s+${NEIGH_AS}\s+${MSG_RCVD}\s+${MSG_SENT}\s+${IN_QUEUE}\s+${OUT_QUEUE}\s+${UP_DOWN}\s+${STATE} -> Record ^Neighbor\s+Status\s+Codes: ^\s*$$ ^. -> Error diff --git a/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.raw b/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.raw index 3df17afff9..134c6430b4 100644 --- a/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.raw +++ b/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.raw @@ -1,3 +1,4 @@ BGP router identifier 10.26.0.22, local AS number 65533 Neighbor V AS MsgRcvd MsgSent InQ OutQ Up/Down State PfxRcd 10.17.254.78 4 65534 187 191 0 0 123d12h Estab 1 +10.17.254.79 4 65535 298 202 0 0 345d21h Active \ No newline at end of file diff --git a/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.yml b/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.yml index 4a4eb56bc7..5a97d16307 100644 --- a/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.yml +++ b/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.yml @@ -14,3 +14,17 @@ parsed_sample: state: "Estab" state_pfxrcd: "1" state_pfxacc: "" + - router_id: "10.26.0.22" + local_as: "65533" + vrf: "" + description: "" + bgp_neigh: "10.17.254.79" + neigh_as: "65535" + msg_rcvd: "298" + msg_sent: "202" + in_queue: "0" + out_queue: "0" + up_down: "345d21h" + state: "Active" + state_pfxrcd: "" + state_pfxacc: "" \ No newline at end of file From 76822f6d259955f506aed62c338694e915610de2 Mon Sep 17 00:00:00 2001 From: Samantha Tesla Date: Thu, 27 Jul 2023 15:35:24 -0500 Subject: [PATCH 2/2] add newlines, oops --- .../show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.raw | 2 +- .../show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.raw b/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.raw index 134c6430b4..a330ce281b 100644 --- a/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.raw +++ b/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.raw @@ -1,4 +1,4 @@ BGP router identifier 10.26.0.22, local AS number 65533 Neighbor V AS MsgRcvd MsgSent InQ OutQ Up/Down State PfxRcd 10.17.254.78 4 65534 187 191 0 0 123d12h Estab 1 -10.17.254.79 4 65535 298 202 0 0 345d21h Active \ No newline at end of file +10.17.254.79 4 65535 298 202 0 0 345d21h Active diff --git a/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.yml b/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.yml index 5a97d16307..f133358efc 100644 --- a/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.yml +++ b/tests/arista_eos/show_ip_bgp_summary/arista_eos_show_ip_bgp_summary4.yml @@ -27,4 +27,4 @@ parsed_sample: up_down: "345d21h" state: "Active" state_pfxrcd: "" - state_pfxacc: "" \ No newline at end of file + state_pfxacc: ""