Skip to content

Commit

Permalink
Fixed by adding support for ext comm in asa show bgp summary (network…
Browse files Browse the repository at this point in the history
  • Loading branch information
sjhloco authored and cppmonkey committed Oct 25, 2023
1 parent c896575 commit 16a3d17
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
1 change: 1 addition & 0 deletions ntc_templates/templates/cisco_asa_show_bgp_summary.textfsm
Original file line number Diff line number Diff line change
Expand Up @@ -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*$$
Expand Down
4 changes: 2 additions & 2 deletions tests/cisco_asa/show_bgp_summary/show_bgp_summary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
14 changes: 14 additions & 0 deletions tests/cisco_asa/show_bgp_summary/show_bgp_summary1.raw
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions tests/cisco_asa/show_bgp_summary/show_bgp_summary1.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 16a3d17

Please sign in to comment.