From ca7b0686385338e34d5e070bca6269a7380b6326 Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Sun, 8 Dec 2024 21:38:29 -0500 Subject: [PATCH 1/2] Simplify bgp vpnv4 neighbor description regex --- .../templates/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntc_templates/templates/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm b/ntc_templates/templates/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm index eb9b6b4b16..146592c255 100644 --- a/ntc_templates/templates/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm +++ b/ntc_templates/templates/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm @@ -2,7 +2,7 @@ Value NEIGHBOR (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) Value VRF (\S+) Value REMOTE_AS (\d+) Value LOCAL_AS (\d+) -Value DESCRIPTION (\S+.*) +Value DESCRIPTION (.+) Value PEER_GROUP (\S+) Value REMOTE_ROUTER_ID (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) Value BGP_STATE (\w+) From 45348286ad789ebb569e6819fadd012cef07339b Mon Sep 17 00:00:00 2001 From: Michael Bear <38406045+mjbear@users.noreply.github.com> Date: Sun, 8 Dec 2024 21:52:18 -0500 Subject: [PATCH 2/2] Add ios BGP vpnv4 test data and fix for Local AS * In some output Local AS is not present so make it optional --- ...os_show_ip_bgp_vpnv4_all_neighbors.textfsm | 2 +- ...co_ios_show_ip_bgp_vpnv4_all_neighbors.yml | 1 + ..._show_ip_bgp_vpnv4_all_neighbors_desc1.raw | 351 ++++++++++++++++ ..._show_ip_bgp_vpnv4_all_neighbors_desc1.yml | 58 +++ ..._show_ip_bgp_vpnv4_all_neighbors_desc2.raw | 378 ++++++++++++++++++ ..._show_ip_bgp_vpnv4_all_neighbors_desc2.yml | 44 ++ ...ow_ip_bgp_vpnv4_all_neighbors_multiple.yml | 8 + 7 files changed, 841 insertions(+), 1 deletion(-) create mode 100644 tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc1.raw create mode 100644 tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc1.yml create mode 100644 tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc2.raw create mode 100644 tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc2.yml diff --git a/ntc_templates/templates/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm b/ntc_templates/templates/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm index 146592c255..3f061b95ca 100644 --- a/ntc_templates/templates/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm +++ b/ntc_templates/templates/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.textfsm @@ -16,7 +16,7 @@ Value OUTBOUND_ROUTEMAP (\S+) Start # Capture first line, which shows the BGP neighor and remote AS number ^BGP\s+neighbor\s+is -> Continue.Record - ^BGP\s+neighbor\s+is\s+${NEIGHBOR},\s+vrf\s+${VRF},\s+remote\s+AS\s+${REMOTE_AS},\s+local\s+AS\s+${LOCAL_AS} + ^BGP\s+neighbor\s+is\s+${NEIGHBOR},\s+vrf\s+${VRF},\s+remote\s+AS\s+${REMOTE_AS},(\s+local\s+AS\s+${LOCAL_AS},)?\s+\S+\s+link\s*$$ # Capture BGP peer group # Example: 'Member of peer-group RR_SERVERS for session parameters' ^\s*Member\s+of\s+peer-group\s+${PEER_GROUP} diff --git a/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.yml b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.yml index 5b7dbec6f0..5ccc96492e 100644 --- a/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.yml +++ b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors.yml @@ -1,6 +1,7 @@ --- parsed_sample: - bgp_state: "Established" + description: "" inbound_routemap: "BGP_IN" local_as: "65534" localhost_ip: "10.255.11.204" diff --git a/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc1.raw b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc1.raw new file mode 100644 index 0000000000..b859a10229 --- /dev/null +++ b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc1.raw @@ -0,0 +1,351 @@ +BGP neighbor is 10.0.6.1, vrf Client_A, remote AS 65004, external link + Description: CE-A3 + BGP version 4, remote router ID 10.0.6.1 + BGP state = Established, up for 00:07:24 + Last read 00:00:23, last write 00:00:16, hold time is 180, keepalive interval is 60 seconds + Neighbor capabilities: + Route refresh: advertised and received(new) + New ASN Capability: advertised + Address family IPv4 Unicast: advertised and received + Message statistics: + InQ depth is 0 + OutQ depth is 0 + + Sent Rcvd + Opens: 1 1 + Notifications: 0 0 + Updates: 3 1 + Keepalives: 9 10 + Route Refresh: 0 0 + Total: 13 12 + Default minimum time between advertisement runs is 0 seconds + + For address family: VPNv4 Unicast + Translates address family IPv4 Unicast for VRF Client_A + BGP table version 11, neighbor version 11/0 + Output queue size : 0 + Index 1, Offset 0, Mask 0x2 + 1 update-group member + Sent Rcvd + Prefix activity: ---- ---- + Prefixes Current: 3 1 (Consumes 68 bytes) + Prefixes Total: 3 1 + Implicit Withdraw: 1 0 + Explicit Withdraw: 0 0 + Used as bestpath: n/a 1 + Used as multipath: n/a 0 + + Outbound Inbound + Local Policy Denied Prefixes: -------- ------- + Total: 0 0 + Number of NLRIs in the update sent: max 1, min 1 + + Address tracking is enabled, the RIB does have a route to 10.0.6.1 + Connections established 1; dropped 0 + Last reset never + Transport(tcp) path-mtu-discovery is enabled +Connection state is ESTAB, I/O status: 1, unread input bytes: 0 +Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1 +Local host: 10.0.6.2, Local port: 30500 +Foreign host: 10.0.6.1, Foreign port: 179 +Connection tableid (VRF): 1 + +Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes) + +Event Timers (current time is 0x90E7C): +Timer Starts Wakeups Next +Retrans 12 0 0x0 +TimeWait 0 0 0x0 +AckHold 11 8 0x0 +SendWnd 0 0 0x0 +KeepAlive 0 0 0x0 +GiveUp 0 0 0x0 +PmtuAger 1 0 0xB6D88 +DeadWait 0 0 0x0 +Linger 0 0 0x0 +ProcessQ 0 0 0x0 + +iss: 454763278 snduna: 454763644 sndnxt: 454763644 sndwnd: 16019 +irs: 4096799984 rcvnxt: 4096800272 rcvwnd: 16097 delrcvwnd: 287 + +SRTT: 241 ms, RTTO: 726 ms, RTV: 485 ms, KRTT: 0 ms +minRTT: 16 ms, maxRTT: 312 ms, ACK hold: 200 ms +Status Flags: active open +Option Flags: VRF id set, nagle, path mtu capable +IP Precedence value : 6 + +Datagrams (max data segment is 1460 bytes): +Rcvd: 21 (out of order: 0), with data: 12, total data bytes: 287 +Sent: 23 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 13, total data bytes: 365 + Packets received in fast path: 0, fast processed: 0, slow path: 0 + fast lock acquisition failures: 0, slow path: 0 + +BGP neighbor is 10.0.6.1, vrf Client_B, remote AS 65003, external link + Description: CE-B2 + BGP version 4, remote router ID 10.0.6.1 + BGP state = Established, up for 00:07:54 + Last read 00:00:53, last write 00:00:16, hold time is 180, keepalive interval is 60 seconds + Neighbor capabilities: + Route refresh: advertised and received(new) + New ASN Capability: advertised + Address family IPv4 Unicast: advertised and received + Message statistics: + InQ depth is 0 + OutQ depth is 0 + + Sent Rcvd + Opens: 1 1 + Notifications: 0 0 + Updates: 1 1 + Keepalives: 9 10 + Route Refresh: 0 0 + Total: 11 12 + Default minimum time between advertisement runs is 0 seconds + + For address family: VPNv4 Unicast + Translates address family IPv4 Unicast for VRF Client_B + BGP table version 11, neighbor version 11/0 + Output queue size : 0 + Index 2, Offset 0, Mask 0x4 + 2 update-group member + Sent Rcvd + Prefix activity: ---- ---- + Prefixes Current: 1 1 (Consumes 68 bytes) + Prefixes Total: 1 1 + Implicit Withdraw: 0 0 + Explicit Withdraw: 0 0 + Used as bestpath: n/a 1 + Used as multipath: n/a 0 + + Outbound Inbound + Local Policy Denied Prefixes: -------- ------- + Bestpath from this peer: 1 n/a + Total: 1 0 + Number of NLRIs in the update sent: max 1, min 1 + + Address tracking is enabled, the RIB does have a route to 10.0.6.1 + Connections established 1; dropped 0 + Last reset never + Transport(tcp) path-mtu-discovery is enabled +Connection state is ESTAB, I/O status: 1, unread input bytes: 0 +Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1 +Local host: 10.0.6.2, Local port: 38510 +Foreign host: 10.0.6.1, Foreign port: 179 +Connection tableid (VRF): 2 + +Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes) + +Event Timers (current time is 0x90F14): +Timer Starts Wakeups Next +Retrans 12 1 0x0 +TimeWait 0 0 0x0 +AckHold 10 8 0x0 +SendWnd 0 0 0x0 +KeepAlive 0 0 0x0 +GiveUp 0 0 0x0 +PmtuAger 1 0 0xAF7A8 +DeadWait 0 0 0x0 +Linger 0 0 0x0 +ProcessQ 0 0 0x0 + +iss: 4039253373 snduna: 4039253645 sndnxt: 4039253645 sndwnd: 16113 +irs: 3275336347 rcvnxt: 3275336635 rcvwnd: 16097 delrcvwnd: 287 + +SRTT: 223 ms, RTTO: 850 ms, RTV: 627 ms, KRTT: 0 ms +minRTT: 16 ms, maxRTT: 316 ms, ACK hold: 200 ms +Status Flags: active open +Option Flags: VRF id set, nagle, path mtu capable +IP Precedence value : 6 + +Datagrams (max data segment is 1460 bytes): +Rcvd: 21 (out of order: 0), with data: 12, total data bytes: 287 +Sent: 21 (retransmit: 1, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 11, total data bytes: 271 + Packets received in fast path: 0, fast processed: 0, slow path: 0 + fast lock acquisition failures: 0, slow path: 0 + +BGP neighbor is 10.1.6.1, vrf Client_A, remote AS 65004, external link + Description: CE-A2 + BGP version 4, remote router ID 10.1.6.1 + BGP state = Established, up for 00:07:31 + Last read 00:00:31, last write 00:00:16, hold time is 180, keepalive interval is 60 seconds + Neighbor capabilities: + Route refresh: advertised and received(new) + New ASN Capability: advertised + Address family IPv4 Unicast: advertised and received + Message statistics: + InQ depth is 0 + OutQ depth is 0 + + Sent Rcvd + Opens: 1 1 + Notifications: 0 0 + Updates: 3 1 + Keepalives: 9 10 + Route Refresh: 0 0 + Total: 13 12 + Default minimum time between advertisement runs is 0 seconds + + For address family: VPNv4 Unicast + Translates address family IPv4 Unicast for VRF Client_A + BGP table version 11, neighbor version 11/0 + Output queue size : 0 + Index 1, Offset 0, Mask 0x2 + 1 update-group member + Sent Rcvd + Prefix activity: ---- ---- + Prefixes Current: 3 1 (Consumes 68 bytes) + Prefixes Total: 3 1 + Implicit Withdraw: 0 0 + Explicit Withdraw: 0 0 + Used as bestpath: n/a 1 + Used as multipath: n/a 0 + + Outbound Inbound + Local Policy Denied Prefixes: -------- ------- + Total: 0 0 + Number of NLRIs in the update sent: max 1, min 1 + + Address tracking is enabled, the RIB does have a route to 10.1.6.1 + Connections established 1; dropped 0 + Last reset never + Transport(tcp) path-mtu-discovery is enabled +Connection state is ESTAB, I/O status: 1, unread input bytes: 0 +Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1 +Local host: 10.1.6.2, Local port: 61424 +Foreign host: 10.1.6.1, Foreign port: 179 +Connection tableid (VRF): 1 + +Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes) + +Event Timers (current time is 0x90FAC): +Timer Starts Wakeups Next +Retrans 14 1 0x0 +TimeWait 0 0 0x0 +AckHold 11 8 0x0 +SendWnd 0 0 0x0 +KeepAlive 0 0 0x0 +GiveUp 0 0 0x0 +PmtuAger 1 0 0xB51A8 +DeadWait 0 0 0x0 +Linger 0 0 0x0 +ProcessQ 0 0 0x0 + +iss: 4243366446 snduna: 4243366812 sndnxt: 4243366812 sndwnd: 16019 +irs: 1010749841 rcvnxt: 1010750129 rcvwnd: 16097 delrcvwnd: 287 + +SRTT: 241 ms, RTTO: 726 ms, RTV: 485 ms, KRTT: 0 ms +minRTT: 12 ms, maxRTT: 312 ms, ACK hold: 200 ms +Status Flags: active open +Option Flags: VRF id set, nagle, path mtu capable +IP Precedence value : 6 + +Datagrams (max data segment is 1460 bytes): +Rcvd: 23 (out of order: 0), with data: 12, total data bytes: 287 +Sent: 23 (retransmit: 1, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 13, total data bytes: 365 + Packets received in fast path: 0, fast processed: 0, slow path: 0 + fast lock acquisition failures: 0, slow path: 0 + +BGP neighbor is 10.10.10.2, remote AS 65000, internal link + Description: Peering with Route Reflector + BGP version 4, remote router ID 10.10.10.2 + BGP state = Established, up for 00:09:16 + Last read 00:00:15, last write 00:00:22, hold time is 180, keepalive interval is 60 seconds + Neighbor capabilities: + Route refresh: advertised and received(new) + New ASN Capability: advertised + Address family IPv4 Unicast: advertised and received + Address family VPNv4 Unicast: advertised and received + Message statistics: + InQ depth is 0 + OutQ depth is 0 + + Sent Rcvd + Opens: 1 1 + Notifications: 0 0 + Updates: 3 5 + Keepalives: 9 11 + Route Refresh: 0 0 + Total: 13 17 + Default minimum time between advertisement runs is 0 seconds + + For address family: IPv4 Unicast + BGP table version 1, neighbor version 1/0 + Output queue size : 0 + Index 1, Offset 0, Mask 0x2 + 1 update-group member + Sent Rcvd + Prefix activity: ---- ---- + Prefixes Current: 0 0 + Prefixes Total: 0 0 + Implicit Withdraw: 0 0 + Explicit Withdraw: 0 0 + Used as bestpath: n/a 0 + Used as multipath: n/a 0 + + Outbound Inbound + Local Policy Denied Prefixes: -------- ------- + Total: 0 0 + Number of NLRIs in the update sent: max 0, min 0 + + For address family: VPNv4 Unicast + BGP table version 11, neighbor version 11/0 + Output queue size : 0 + Index 3, Offset 0, Mask 0x8 + 3 update-group member + Community attribute sent to this neighbor + Sent Rcvd + Prefix activity: ---- ---- + Prefixes Current: 3 2 (Consumes 136 bytes) + Prefixes Total: 3 2 + Implicit Withdraw: 0 0 + Explicit Withdraw: 0 0 + Used as bestpath: n/a 2 + Used as multipath: n/a 0 + + Outbound Inbound + Local Policy Denied Prefixes: -------- ------- + ORIGINATOR loop: n/a 3 + Bestpath from this peer: 4 n/a + Total: 4 3 + Number of NLRIs in the update sent: max 1, min 1 + + Address tracking is enabled, the RIB does have a route to 10.10.10.2 + Connections established 1; dropped 0 + Last reset never + Transport(tcp) path-mtu-discovery is enabled +Connection state is ESTAB, I/O status: 1, unread input bytes: 0 +Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 255 +Local host: 10.10.10.6, Local port: 179 +Foreign host: 10.10.10.2, Foreign port: 14109 +Connection tableid (VRF): 0 + +Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes) + +Event Timers (current time is 0x9107C): +Timer Starts Wakeups Next +Retrans 14 0 0x0 +TimeWait 0 0 0x0 +AckHold 16 14 0x0 +SendWnd 0 0 0x0 +KeepAlive 0 0 0x0 +GiveUp 0 0 0x0 +PmtuAger 0 0 0x0 +DeadWait 0 0 0x0 +Linger 0 0 0x0 +ProcessQ 0 0 0x0 + +iss: 2040572907 snduna: 2040573422 sndnxt: 2040573422 sndwnd: 15870 +irs: 1111912154 rcvnxt: 1111912957 rcvwnd: 16124 delrcvwnd: 260 + +SRTT: 254 ms, RTTO: 619 ms, RTV: 365 ms, KRTT: 0 ms +minRTT: 8 ms, maxRTT: 300 ms, ACK hold: 200 ms +Status Flags: passive open, gen tcbs +Option Flags: nagle, path mtu capable +IP Precedence value : 6 + +Datagrams (max data segment is 536 bytes): +Rcvd: 28 (out of order: 0), with data: 17, total data bytes: 802 +Sent: 29 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 13, total data bytes: 514 + Packets received in fast path: 0, fast processed: 0, slow path: 0 + fast lock acquisition failures: 0, slow path: 0 + diff --git a/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc1.yml b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc1.yml new file mode 100644 index 0000000000..da09323961 --- /dev/null +++ b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc1.yml @@ -0,0 +1,58 @@ +--- +parsed_sample: + - bgp_state: "Established" + description: "CE-A3" + inbound_routemap: "" + local_as: "" + localhost_ip: "10.0.6.2" + localhost_port: "30500" + neighbor: "10.0.6.1" + outbound_routemap: "" + peer_group: "" + remote_as: "65004" + remote_ip: "10.0.6.1" + remote_port: "179" + remote_router_id: "10.0.6.1" + vrf: "Client_A" + - bgp_state: "Established" + description: "CE-B2" + inbound_routemap: "" + local_as: "" + localhost_ip: "10.0.6.2" + localhost_port: "38510" + neighbor: "10.0.6.1" + outbound_routemap: "" + peer_group: "" + remote_as: "65003" + remote_ip: "10.0.6.1" + remote_port: "179" + remote_router_id: "10.0.6.1" + vrf: "Client_B" + - bgp_state: "Established" + description: "CE-A2" + inbound_routemap: "" + local_as: "" + localhost_ip: "10.1.6.2" + localhost_port: "61424" + neighbor: "10.1.6.1" + outbound_routemap: "" + peer_group: "" + remote_as: "65004" + remote_ip: "10.1.6.1" + remote_port: "179" + remote_router_id: "10.1.6.1" + vrf: "Client_A" + - bgp_state: "Established" + description: "Peering with Route Reflector" + inbound_routemap: "" + local_as: "" + localhost_ip: "10.10.10.6" + localhost_port: "179" + neighbor: "" + outbound_routemap: "" + peer_group: "" + remote_as: "" + remote_ip: "10.10.10.2" + remote_port: "14109" + remote_router_id: "10.10.10.2" + vrf: "" diff --git a/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc2.raw b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc2.raw new file mode 100644 index 0000000000..9121f90f9b --- /dev/null +++ b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc2.raw @@ -0,0 +1,378 @@ +BGP neighbor is 10.0.4.1, vrf Client_A, remote AS 65002, external link + Description: CE-A1 + BGP version 4, remote router ID 10.0.4.1 + BGP state = Established, up for 00:04:39 + Last read 00:00:39, last write 00:00:19, hold time is 180, keepalive interval is 60 seconds + Neighbor sessions: + 1 active, is not multisession capable (disabled) + Neighbor capabilities: + Route refresh: advertised and received(new) + Four-octets ASN Capability: advertised + Address family IPv4 Unicast: advertised and received + Enhanced Refresh Capability: advertised + Multisession Capability: + Stateful switchover support enabled: NO for session 1 + Message statistics: + InQ depth is 0 + OutQ depth is 0 + + Sent Rcvd + Opens: 1 1 + Notifications: 0 0 + Updates: 3 1 + Keepalives: 6 7 + Route Refresh: 0 0 + Total: 10 9 + Do log neighbor state changes (via global configuration) + Default minimum time between advertisement runs is 0 seconds + + For address family: VPNv4 Unicast + Translates address family IPv4 Unicast for VRF Client_A + Session: 10.0.4.1 + BGP table version 9, neighbor version 9/0 + Output queue size : 0 + Index 2, Advertise bit 1 + 2 update-group member + Slow-peer detection is disabled + Slow-peer split-update-group dynamic is disabled + Sent Rcvd + Prefix activity: ---- ---- + Prefixes Current: 2 1 (Consumes 80 bytes) + Prefixes Total: 2 1 + Implicit Withdraw: 0 0 + Explicit Withdraw: 0 0 + Used as bestpath: n/a 1 + Used as multipath: n/a 0 + + Outbound Inbound + Local Policy Denied Prefixes: -------- ------- + Bestpath from this peer: 1 n/a + Total: 1 0 + Number of NLRIs in the update sent: max 1, min 0 + Last detected as dynamic slow peer: never + Dynamic slow peer recovered: never + Refresh Epoch: 1 + Last Sent Refresh Start-of-rib: never + Last Sent Refresh End-of-rib: never + Last Received Refresh Start-of-rib: never + Last Received Refresh End-of-rib: never + Sent Rcvd + Refresh activity: ---- ---- + Refresh Start-of-RIB 0 0 + Refresh End-of-RIB 0 0 + + Address tracking is enabled, the RIB does have a route to 10.0.4.1 + Connections established 1; dropped 0 + Last reset never + External BGP neighbor configured for connected checks (single-hop no-disable-connected-check) + Interface associated: GigabitEthernet0/2 (peering address in same link) + Transport(tcp) path-mtu-discovery is enabled + Graceful-Restart is disabled + SSO is disabled +Connection state is ESTAB, I/O status: 1, unread input bytes: 0 +Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1 +Local host: 10.0.4.2, Local port: 40921 +Foreign host: 10.0.4.1, Foreign port: 179 +Connection tableid (VRF): 1 +Maximum output segment queue size: 50 + +Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes) + +Event Timers (current time is 0x5E81C): +Timer Starts Wakeups Next +Retrans 11 1 0x0 +TimeWait 0 0 0x0 +AckHold 9 6 0x0 +SendWnd 0 0 0x0 +KeepAlive 0 0 0x0 +GiveUp 0 0 0x0 +PmtuAger 1 0 0xACB04 +DeadWait 0 0 0x0 +Linger 0 0 0x0 +ProcessQ 0 0 0x0 + +iss: 2021412012 snduna: 2021412301 sndnxt: 2021412301 +irs: 2726334261 rcvnxt: 2726334492 + +sndwnd: 16096 scale: 0 maxrcvwnd: 16384 +rcvwnd: 16154 scale: 0 delrcvwnd: 230 + +SRTT: 699 ms, RTTO: 2656 ms, RTV: 1957 ms, KRTT: 0 ms +minRTT: 10 ms, maxRTT: 1000 ms, ACK hold: 200 ms +uptime: 281845 ms, Sent idletime: 19702 ms, Receive idletime: 19471 ms +Status Flags: active open +Option Flags: VRF id set, nagle, path mtu capable +IP Precedence value : 6 + +Datagrams (max data segment is 1460 bytes): +Rcvd: 17 (out of order: 0), with data: 9, total data bytes: 230 +Sent: 19 (retransmit: 1, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 10, total data bytes: 288 + + Packets received in fast path: 0, fast processed: 0, slow path: 0 + fast lock acquisition failures: 0, slow path: 0 +TCP Semaphore 0x104A363C FREE + +BGP neighbor is 10.0.4.1, vrf Client_B, remote AS 65001, external link + Description: CE-B1 + BGP version 4, remote router ID 10.0.4.1 + BGP state = Established, up for 00:04:27 + Last read 00:00:27, last write 00:00:25, hold time is 180, keepalive interval is 60 seconds + Neighbor sessions: + 1 active, is not multisession capable (disabled) + Neighbor capabilities: + Route refresh: advertised and received(new) + Four-octets ASN Capability: advertised + Address family IPv4 Unicast: advertised and received + Enhanced Refresh Capability: advertised + Multisession Capability: + Stateful switchover support enabled: NO for session 1 + Message statistics: + InQ depth is 0 + OutQ depth is 0 + + Sent Rcvd + Opens: 1 1 + Notifications: 0 0 + Updates: 2 1 + Keepalives: 6 7 + Route Refresh: 0 0 + Total: 9 9 + Do log neighbor state changes (via global configuration) + Default minimum time between advertisement runs is 0 seconds + + For address family: VPNv4 Unicast + Translates address family IPv4 Unicast for VRF Client_B + Session: 10.0.4.1 + BGP table version 9, neighbor version 9/0 + Output queue size : 0 + Index 3, Advertise bit 1 + 3 update-group member + Slow-peer detection is disabled + Slow-peer split-update-group dynamic is disabled + Sent Rcvd + Prefix activity: ---- ---- + Prefixes Current: 1 1 (Consumes 80 bytes) + Prefixes Total: 1 1 + Implicit Withdraw: 0 0 + Explicit Withdraw: 0 0 + Used as bestpath: n/a 1 + Used as multipath: n/a 0 + + Outbound Inbound + Local Policy Denied Prefixes: -------- ------- + Bestpath from this peer: 1 n/a + Total: 1 0 + Number of NLRIs in the update sent: max 1, min 0 + Last detected as dynamic slow peer: never + Dynamic slow peer recovered: never + Refresh Epoch: 1 + Last Sent Refresh Start-of-rib: never + Last Sent Refresh End-of-rib: never + Last Received Refresh Start-of-rib: never + Last Received Refresh End-of-rib: never + Sent Rcvd + Refresh activity: ---- ---- + Refresh Start-of-RIB 0 0 + Refresh End-of-RIB 0 0 + + Address tracking is enabled, the RIB does have a route to 10.0.4.1 + Connections established 1; dropped 0 + Last reset never + External BGP neighbor configured for connected checks (single-hop no-disable-connected-check) + Interface associated: GigabitEthernet0/1 (peering address in same link) + Transport(tcp) path-mtu-discovery is enabled + Graceful-Restart is disabled + SSO is disabled +Connection state is ESTAB, I/O status: 1, unread input bytes: 0 +Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1 +Local host: 10.0.4.2, Local port: 13314 +Foreign host: 10.0.4.1, Foreign port: 179 +Connection tableid (VRF): 2 +Maximum output segment queue size: 50 + +Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes) + +Event Timers (current time is 0x5E8E7): +Timer Starts Wakeups Next +Retrans 10 0 0x0 +TimeWait 0 0 0x0 +AckHold 9 6 0x0 +SendWnd 0 0 0x0 +KeepAlive 0 0 0x0 +GiveUp 0 0 0x0 +PmtuAger 1 0 0xAFB31 +DeadWait 0 0 0x0 +Linger 0 0 0x0 +ProcessQ 0 0 0x0 + +iss: 2358606008 snduna: 2358606250 sndnxt: 2358606250 +irs: 1037878546 rcvnxt: 1037878777 + +sndwnd: 16143 scale: 0 maxrcvwnd: 16384 +rcvwnd: 16154 scale: 0 delrcvwnd: 230 + +SRTT: 737 ms, RTTO: 2506 ms, RTV: 1769 ms, KRTT: 0 ms +minRTT: 9 ms, maxRTT: 1000 ms, ACK hold: 200 ms +uptime: 267660 ms, Sent idletime: 25996 ms, Receive idletime: 25799 ms +Status Flags: active open +Option Flags: VRF id set, nagle, path mtu capable +IP Precedence value : 6 + +Datagrams (max data segment is 1460 bytes): +Rcvd: 16 (out of order: 0), with data: 9, total data bytes: 230 +Sent: 18 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 9, total data bytes: 241 + + Packets received in fast path: 0, fast processed: 0, slow path: 0 + fast lock acquisition failures: 0, slow path: 0 +TCP Semaphore 0x104A371C FREE + +BGP neighbor is 10.10.10.2, remote AS 65000, internal link + Description: Peering with Route Reflector + BGP version 4, remote router ID 10.10.10.2 + BGP state = Established, up for 00:05:22 + Last read 00:00:22, last write 00:00:46, hold time is 180, keepalive interval is 60 seconds + Neighbor sessions: + 1 active, is not multisession capable (disabled) + Neighbor capabilities: + Route refresh: advertised and received(new) + Four-octets ASN Capability: advertised + Address family IPv4 Unicast: advertised and received + Address family VPNv4 Unicast: advertised and received + Enhanced Refresh Capability: advertised + Multisession Capability: + Stateful switchover support enabled: NO for session 1 + Message statistics: + InQ depth is 0 + OutQ depth is 0 + + Sent Rcvd + Opens: 1 1 + Notifications: 0 0 + Updates: 4 5 + Keepalives: 7 8 + Route Refresh: 0 0 + Total: 12 14 + Do log neighbor state changes (via global configuration) + Default minimum time between advertisement runs is 0 seconds + + For address family: IPv4 Unicast + Session: 10.10.10.2 + BGP table version 1, neighbor version 1/0 + Output queue size : 0 + Index 1, Advertise bit 0 + 1 update-group member + Slow-peer detection is disabled + Slow-peer split-update-group dynamic is disabled + Sent Rcvd + Prefix activity: ---- ---- + Prefixes Current: 0 0 + Prefixes Total: 0 0 + Implicit Withdraw: 0 0 + Explicit Withdraw: 0 0 + Used as bestpath: n/a 0 + Used as multipath: n/a 0 + + Outbound Inbound + Local Policy Denied Prefixes: -------- ------- + Total: 0 0 + Number of NLRIs in the update sent: max 0, min 0 + Last detected as dynamic slow peer: never + Dynamic slow peer recovered: never + Refresh Epoch: 1 + Last Sent Refresh Start-of-rib: never + Last Sent Refresh End-of-rib: never + Last Received Refresh Start-of-rib: never + Last Received Refresh End-of-rib: never + Sent Rcvd + Refresh activity: ---- ---- + Refresh Start-of-RIB 0 0 + Refresh End-of-RIB 0 0 + + For address family: VPNv4 Unicast + Session: 10.10.10.2 + BGP table version 9, neighbor version 9/0 + Output queue size : 0 + Index 1, Advertise bit 0 + 1 update-group member + Community attribute sent to this neighbor + Extended-community attribute sent to this neighbor + Slow-peer detection is disabled + Slow-peer split-update-group dynamic is disabled + Sent Rcvd + Prefix activity: ---- ---- + Prefixes Current: 2 3 (Consumes 240 bytes) + Prefixes Total: 2 3 + Implicit Withdraw: 0 0 + Explicit Withdraw: 0 0 + Used as bestpath: n/a 3 + Used as multipath: n/a 0 + + Outbound Inbound + Local Policy Denied Prefixes: -------- ------- + ORIGINATOR loop: n/a 2 + Bestpath from this peer: 3 n/a + AF Permit Check: 3 n/a + Total: 6 2 + Number of NLRIs in the update sent: max 1, min 0 + Last detected as dynamic slow peer: never + Dynamic slow peer recovered: never + Refresh Epoch: 1 + Last Sent Refresh Start-of-rib: never + Last Sent Refresh End-of-rib: never + Last Received Refresh Start-of-rib: never + Last Received Refresh End-of-rib: never + Sent Rcvd + Refresh activity: ---- ---- + Refresh Start-of-RIB 0 0 + Refresh End-of-RIB 0 0 + + Address tracking is enabled, the RIB does have a route to 10.10.10.2 + Connections established 1; dropped 0 + Last reset never + Interface associated: (none) (peering address NOT in same link) + Transport(tcp) path-mtu-discovery is enabled + Graceful-Restart is disabled + SSO is disabled +Connection state is ESTAB, I/O status: 1, unread input bytes: 0 +Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 255 +Local host: 10.10.10.4, Local port: 63250 +Foreign host: 10.10.10.2, Foreign port: 179 +Connection tableid (VRF): 0 +Maximum output segment queue size: 50 + +Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes) + +Event Timers (current time is 0x5E9BD): +Timer Starts Wakeups Next +Retrans 11 0 0x0 +TimeWait 0 0 0x0 +AckHold 13 9 0x0 +SendWnd 0 0 0x0 +KeepAlive 0 0 0x0 +GiveUp 0 0 0x0 +PmtuAger 1 0 0xA232E +DeadWait 0 0 0x0 +Linger 0 0 0x0 +ProcessQ 0 0 0x0 + +iss: 1934459716 snduna: 1934460155 sndnxt: 1934460155 +irs: 2566611395 rcvnxt: 2566612141 + +sndwnd: 15946 scale: 0 maxrcvwnd: 16384 +rcvwnd: 16200 scale: 0 delrcvwnd: 184 + +SRTT: 770 ms, RTTO: 2360 ms, RTV: 1590 ms, KRTT: 0 ms +minRTT: 13 ms, maxRTT: 1000 ms, ACK hold: 200 ms +uptime: 323170 ms, Sent idletime: 22360 ms, Receive idletime: 22560 ms +Status Flags: active open +Option Flags: nagle, path mtu capable +IP Precedence value : 6 + +Datagrams (max data segment is 536 bytes): +Rcvd: 21 (out of order: 0), with data: 14, total data bytes: 745 +Sent: 26 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 12, total data bytes: 438 + + Packets received in fast path: 0, fast processed: 0, slow path: 0 + fast lock acquisition failures: 0, slow path: 0 +TCP Semaphore 0x104A37FC FREE + diff --git a/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc2.yml b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc2.yml new file mode 100644 index 0000000000..a534892f44 --- /dev/null +++ b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_desc2.yml @@ -0,0 +1,44 @@ +--- +parsed_sample: + - bgp_state: "Established" + description: "CE-A1" + inbound_routemap: "" + local_as: "" + localhost_ip: "10.0.4.2" + localhost_port: "40921" + neighbor: "10.0.4.1" + outbound_routemap: "" + peer_group: "" + remote_as: "65002" + remote_ip: "10.0.4.1" + remote_port: "179" + remote_router_id: "10.0.4.1" + vrf: "Client_A" + - bgp_state: "Established" + description: "CE-B1" + inbound_routemap: "" + local_as: "" + localhost_ip: "10.0.4.2" + localhost_port: "13314" + neighbor: "10.0.4.1" + outbound_routemap: "" + peer_group: "" + remote_as: "65001" + remote_ip: "10.0.4.1" + remote_port: "179" + remote_router_id: "10.0.4.1" + vrf: "Client_B" + - bgp_state: "Established" + description: "Peering with Route Reflector" + inbound_routemap: "" + local_as: "" + localhost_ip: "10.10.10.4" + localhost_port: "63250" + neighbor: "" + outbound_routemap: "" + peer_group: "" + remote_as: "" + remote_ip: "10.10.10.2" + remote_port: "179" + remote_router_id: "10.10.10.2" + vrf: "" diff --git a/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_multiple.yml b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_multiple.yml index b88b40a692..f0f33979a1 100644 --- a/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_multiple.yml +++ b/tests/cisco_ios/show_ip_bgp_vpnv4_all_neighbors/cisco_ios_show_ip_bgp_vpnv4_all_neighbors_multiple.yml @@ -1,6 +1,7 @@ --- parsed_sample: - bgp_state: "Established" + description: "" inbound_routemap: "BGP_IN" local_as: "65534" localhost_ip: "10.255.11.204" @@ -14,6 +15,7 @@ parsed_sample: remote_router_id: "10.255.255.6" vrf: "VRF11" - bgp_state: "Established" + description: "" inbound_routemap: "BGP_IN" local_as: "65534" localhost_ip: "10.255.11.204" @@ -27,6 +29,7 @@ parsed_sample: remote_router_id: "10.255.250.6" vrf: "VRF11" - bgp_state: "Established" + description: "" inbound_routemap: "BGP_IN" local_as: "65534" localhost_ip: "10.255.12.204" @@ -40,6 +43,7 @@ parsed_sample: remote_router_id: "10.255.255.6" vrf: "VRF12" - bgp_state: "Established" + description: "" inbound_routemap: "BGP_IN" local_as: "65534" localhost_ip: "10.255.12.204" @@ -53,6 +57,7 @@ parsed_sample: remote_router_id: "10.255.250.6" vrf: "VRF12" - bgp_state: "Established" + description: "" inbound_routemap: "BGP_IN" local_as: "65534" localhost_ip: "10.255.13.204" @@ -66,6 +71,7 @@ parsed_sample: remote_router_id: "10.255.255.6" vrf: "VRF13" - bgp_state: "Established" + description: "" inbound_routemap: "BGP_IN" local_as: "65534" localhost_ip: "10.255.13.204" @@ -79,6 +85,7 @@ parsed_sample: remote_router_id: "10.255.250.6" vrf: "VRF13" - bgp_state: "Established" + description: "" inbound_routemap: "BGP_IN" local_as: "65534" localhost_ip: "172.16.0.141" @@ -92,6 +99,7 @@ parsed_sample: remote_router_id: "10.255.255.6" vrf: "VRF10" - bgp_state: "Established" + description: "" inbound_routemap: "BGP_IN" local_as: "65534" localhost_ip: "172.16.0.141"