diff --git a/ntc_templates/templates/cisco_asa_show_bgp_summary.textfsm b/ntc_templates/templates/cisco_asa_show_bgp_summary.textfsm index d885dfd2eb..7a385afbfd 100644 --- a/ntc_templates/templates/cisco_asa_show_bgp_summary.textfsm +++ b/ntc_templates/templates/cisco_asa_show_bgp_summary.textfsm @@ -13,6 +13,7 @@ Start ^\d+\/\d+\s+BGP\s+path\/bestpath\s+attribute\s+entries\s+using\s+\d+\s+bytes\s+of\s+memory\s*$$ ^\d+\s+BGP\s+AS-PATH\s+entries\s+using\s+\d+\s+bytes\s+of\s+memory\s*$$ ^\d+\s+BGP\s+community\s+entries\s+using\s+\d+\s+bytes\s+of\s+memory\s*$$ + ^\d+\s+BGP\s+extended\s+community\s+entries\s+using\s+\d+\s+bytes\s+of\s+memory\s*$$ ^\d+\s+BGP\s+route-map\s+cache\s+entries\s+using\s+\d+\s+bytes\s+of\s+memory\s*$$ ^\d+\s+BGP\s+filter-list\s+cache\s+entries\s+using\s+\d+\s+bytes\s+of\s+memory\s*$$ ^BGP\s+using\s\d+\s+total\s+bytes\s+of\s+memory\s*$$ diff --git a/tests/cisco_asa/show_bgp_summary/show_bgp_summary.yml b/tests/cisco_asa/show_bgp_summary/show_bgp_summary.yml index 51600caf9d..95fdb6e770 100644 --- a/tests/cisco_asa/show_bgp_summary/show_bgp_summary.yml +++ b/tests/cisco_asa/show_bgp_summary/show_bgp_summary.yml @@ -4,11 +4,11 @@ parsed_sample: local_as: "65045" bgp_neigh: "172.16.243.53" neigh_as: "186" - state_pfxrcd: "111" up_down: "4d06h" + state_pfxrcd: "111" - router_id: "172.25.40.2" local_as: "65045" bgp_neigh: "172.16.248.53" neigh_as: "196" - state_pfxrcd: "Idle" up_down: "never" + state_pfxrcd: "Idle" diff --git a/tests/cisco_asa/show_bgp_summary/show_bgp_summary1.raw b/tests/cisco_asa/show_bgp_summary/show_bgp_summary1.raw new file mode 100644 index 0000000000..8a2fa74fb7 --- /dev/null +++ b/tests/cisco_asa/show_bgp_summary/show_bgp_summary1.raw @@ -0,0 +1,14 @@ +BGP router identifier 10.10.254.1, local AS number 65101 +BGP table version is 9, main routing table version 9 +8 network entries using 1600 bytes of memory +8 path entries using 640 bytes of memory +8/7 BGP path/bestpath attribute entries using 1664 bytes of memory +4 BGP extended community entries using 96 bytes of memory +0 BGP route-map cache entries using 0 bytes of memory +0 BGP filter-list cache entries using 0 bytes of memory +BGP using 4000 total bytes of memory +BGP activity 8/0 prefixes, 8/0 paths, scan interval 60 secs + +Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd +10.10.254.1 4 65101 961788 961836 9 0 0 4w6d 5 +10.10.254.9 4 65101 961784 961836 9 0 0 4w6d 1 \ No newline at end of file diff --git a/tests/cisco_asa/show_bgp_summary/show_bgp_summary1.yml b/tests/cisco_asa/show_bgp_summary/show_bgp_summary1.yml new file mode 100644 index 0000000000..e8bde5d9d6 --- /dev/null +++ b/tests/cisco_asa/show_bgp_summary/show_bgp_summary1.yml @@ -0,0 +1,14 @@ +--- +parsed_sample: + - router_id: "10.10.254.1" + local_as: "65101" + bgp_neigh: "10.10.254.1" + neigh_as: "65101" + up_down: "4w6d" + state_pfxrcd: "5" + - router_id: "10.10.254.1" + local_as: "65101" + bgp_neigh: "10.10.254.9" + neigh_as: "65101" + up_down: "4w6d" + state_pfxrcd: "1"