-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #170 from Sandeepsr/sandeepsr/ntc1
adding cisco_xr_show_ip_bgp_summary.template
- Loading branch information
Showing
4 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
tests/cisco_xr/show_ip_bgp_summary/cisco_xr_show_ip_bgp_summary.parsed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
22 changes: 22 additions & 0 deletions
22
tests/cisco_xr/show_ip_bgp_summary/cisco_xr_show_ip_bgp_summary.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |