Skip to content

Commit

Permalink
Merge pull request #170 from Sandeepsr/sandeepsr/ntc1
Browse files Browse the repository at this point in the history
adding cisco_xr_show_ip_bgp_summary.template
  • Loading branch information
itdependsnetworks authored Dec 26, 2017
2 parents 571d197 + dadb2cb commit b5e9c5b
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 0 deletions.
25 changes: 25 additions & 0 deletions templates/cisco_xr_show_ip_bgp_summary.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Value Filldown ROUTER_ID (\d+\.\d+\.\d+\.\d+)
Value Filldown LOCAL_AS (\d+)
Value BGP_NEIGH (\d+\.\d+\.\d+\.\d+)
Value NEIGH_AS (\d+)
Value MSG_RCVD (\d+)
Value MSG_SENT (\d+)
Value IN_QUEUE (\d+)
Value OUT_QUEUE (\d+)
Value UP_DOWN (\S+)
Value STATE_PFXRCD (\S+)


Start
^.*\s+${ROUTER_ID}.*number\s+${LOCAL_AS} -> Begin

Begin
^Neighbor\s+.*Spk -> Neighbors

Neighbors
^${BGP_NEIGH}\s+\d+\s+${NEIGH_AS}\s+${MSG_RCVD}\s+${MSG_SENT}\s+\d+\s+${IN_QUEUE}\s+${OUT_QUEUE}\s+${UP_DOWN}\s+${STATE_PFXRCD} -> Record
^\s+$$
^$$
^.* -> Error "LINE NOT FOUND"

EOF
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ cisco_xr_show_cdp_neighbors_detail.template, .*, cisco_xr, sh[[ow]] c[[dp]] neig
cisco_xr_show_redundancy_summary.template, .*, cisco_xr, sh[[ow]] redun[[dancy]] summ[[ary]]
cisco_xr_show_interface_brief.template, .*, cisco_xr, sh[[ow]] int[[erface]] br[[ief]]
cisco_xr_admin_show_platform.template, .*, cisco_xr, adm[[in]] sh[[ow]] pla[[tform]]
cisco_xr_show_ip_bgp_summary.template, .*, cisco_xr, sh[[ow]] ip b[[gp]] s[[ummary]]
cisco_xr_show_isis_neighbors.template, .*, cisco_xr, sh[[ow]] isis ne[[ighbors]]
cisco_xr_show_rsvp_neighbors.template, .*, cisco_xr, sh[[ow]] rs[[vp]] neigh[[bors]]
cisco_xr_show_ospf_neighbor.template, .*, cisco_xr, sh[[ow]] ospf nei[[ghbor]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---

parsed_sample:


- state_pfxrcd : 'Idle'
neigh_as : '64924'
local_as : '64200'
out_queue : '0'
msg_sent : '64731'
bgp_neigh : '10.10.17.161'
up_down : '00:00:00'
in_queue : '0'
router_id : '30.67.35.78'
msg_rcvd : '36190'


- state_pfxrcd : 'Active'
neigh_as : '64727'
local_as : '64200'
out_queue : '0'
msg_sent : '70941'
bgp_neigh : '10.10.128.240'
up_down : '2d14h'
in_queue : '0'
router_id : '30.67.35.78'
msg_rcvd : '68750'


- state_pfxrcd : '82'
neigh_as : '64727'
local_as : '64200'
out_queue : '0'
msg_sent : '76220'
bgp_neigh : '10.10.132.240'
up_down : '7w2d'
in_queue : '0'
router_id : '30.67.35.78'
msg_rcvd : '74112'


- state_pfxrcd : '82'
neigh_as : '64727'
local_as : '64200'
out_queue : '0'
msg_sent : '74575'
bgp_neigh : '10.10.140.240'
up_down : '4d10h'
in_queue : '0'
router_id : '30.67.35.78'
msg_rcvd : '72363'
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Mon Dec 18 11:13:26.959 UTC
BGP router identifier 30.67.35.78, local AS number 64200
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0xe0000000 RD version: 94623
BGP main routing table version 94623
BGP NSR Initial initsync version 2 (Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.


Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
Speaker 94623 94623 94623 94623 94623 0

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd
10.10.17.161 0 64924 36190 64731 0 0 0 00:00:00 Idle
10.10.128.240 0 64727 68750 70941 0 0 0 2d14h Active
10.10.132.240 0 64727 74112 76220 94623 0 0 7w2d 82
10.10.140.240 0 64727 72363 74575 94623 0 0 4d10h 82

0 comments on commit b5e9c5b

Please sign in to comment.