-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue#1182 - capture BGP times less than a day (#1719)
- Loading branch information
Showing
4 changed files
with
124 additions
and
4 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
59 changes: 59 additions & 0 deletions
59
tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors_short_uptime.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,59 @@ | ||
BGP neighbor is 10.20.0.2, remote AS 64514, ebgp link, Peer index 1 | ||
BGP version 4, remote router ID 10.10.255.1 | ||
BGP state = Established, up for 20:03:51 | ||
Peer is directly attached, interface Ethernet1/6 | ||
Enable logging neighbor events | ||
BFD live-detection is configured and enabled, state is Up | ||
Last read 0.791823, hold time = 15, keepalive interval is 5 seconds | ||
Last written 0.168722, keepalive timer expiry due 00:00:04 | ||
Received 653464 messages, 0 notifications, 0 bytes in queue | ||
Sent 653851 messages, 0 notifications, 0 bytes in queue | ||
Connections established 13, dropped 12 | ||
Last reset by us 00:05:01, due to bfd session down | ||
Last reset by peer never, due to No error | ||
Neighbor capabilities: | ||
Dynamic capability: advertised (mp, refresh, gr) received (mp, refresh, gr) | ||
Dynamic capability (old): advertised received | ||
Route refresh capability (new): advertised received | ||
Route refresh capability (old): advertised received | ||
4-Byte AS capability: advertised received | ||
Address family IPv4 Unicast: advertised received | ||
Graceful Restart capability: advertised received | ||
Graceful Restart Parameters: | ||
Address families advertised to peer: | ||
IPv4 Unicast | ||
Address families received from peer: | ||
IPv4 Unicast | ||
Forwarding state preserved by peer for: | ||
Restart time advertised to peer: 120 seconds | ||
Stale time for routes advertised by peer: 300 seconds | ||
Restart time advertised by peer: 120 seconds | ||
Extended Next Hop Encoding Capability: advertised received | ||
Receive IPv6 next hop encoding Capability for AF: | ||
IPv4 Unicast | ||
Message statistics: | ||
Sent Rcvd | ||
Opens: 13 13 | ||
Notifications: 0 0 | ||
Updates: 576 58 | ||
Keepalives: 653262 653391 | ||
Route Refresh: 0 2 | ||
Capability: 0 0 | ||
Total: 653851 653464 | ||
Total bytes: 12464192 12419276 | ||
Bytes in queue: 0 0 | ||
For address family: IPv4 Unicast | ||
BGP table version 9374, neighbor version 9374 | ||
38 accepted paths consume 2128 bytes of memory | ||
First Update Rcvd : 2d00h | ||
Last Update Rcvd : 2d00h | ||
59 sent paths | ||
First Update Sent : 2d00h | ||
Last Update Sent : 2d00h | ||
Inbound soft reconfiguration allowed(always) | ||
Inbound route-map configured is RM-GTT-IN, handle obtained | ||
Outbound route-map configured is RM-GTT-OUT, handle obtained | ||
Last End-of-RIB received 00:00:01 after session start | ||
Local host: 10.20.0.1, Local port: 61055 | ||
Foreign host: 10.20.0.2, Foreign port: 179 | ||
fd = 52 |
61 changes: 61 additions & 0 deletions
61
tests/cisco_nxos/show_ip_bgp_neighbors/cisco_nxos_show_ip_bgp_neighbors_short_uptime.yml
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,61 @@ | ||
--- | ||
parsed_sample: | ||
- accepted_paths: "38" | ||
addr_fam_adv: "IPv4 Unicast " | ||
addr_fam_rcv: "" | ||
addr_family: | ||
- "IPv4 Unicast" | ||
asn: "64514" | ||
bgp_state: "Established" | ||
capability_count_rcvd: "0" | ||
capability_count_sent: "0" | ||
conn_dropped: "12" | ||
conn_estab: "13" | ||
consumed_mem: "2128" | ||
description: "" | ||
ext_nh_cap: "advertised received" | ||
fourbyte_cap: "advertised received " | ||
graceful_cap: "advertised received" | ||
inbound_routemap: "RM-GTT-IN" | ||
keepalives_count_rcvd: "653391" | ||
keepalives_count_sent: "653262" | ||
last_peer_reset: "never" | ||
last_peer_reset_reason: "No error" | ||
last_reset: "00:05:01" | ||
last_reset_reason: "bfd session down" | ||
local_asn: "" | ||
localhost_ip: "10.20.0.1" | ||
localhost_port: "61055" | ||
nei_table_version: | ||
- "9374" | ||
neighbor: "10.20.0.2" | ||
notifications_count_rcvd: "0" | ||
notifications_count_sent: "0" | ||
opens_count_rcvd: "13" | ||
opens_count_sent: "13" | ||
outbound_routemap: "RM-GTT-OUT" | ||
peer_group: "" | ||
remote_asn: "64514" | ||
remote_ip: "10.20.0.2" | ||
remote_port: "179" | ||
restart_time_adv: "120" | ||
restart_time_rcv: "120" | ||
route_refresh_count_rcvd: "2" | ||
route_refresh_count_sent: "0" | ||
rr_new_cap: "advertised received " | ||
rr_old_cap: "advertised received " | ||
sent_paths: "59" | ||
source_iface: "Ethernet1/6" | ||
stale_time: "300" | ||
table_version: | ||
- "9374" | ||
total_bytes_count_rcvd: "12419276" | ||
total_bytes_count_sent: "12464192" | ||
total_bytes_rcvd_queue: "0" | ||
total_bytes_send_queue: "0" | ||
total_mess_count_rcvd: "653464" | ||
total_mess_count_sent: "653851" | ||
updates_count_rcvd: "58" | ||
updates_count_sent: "576" | ||
uptime: "20:03:51" | ||
vrf: "" |
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