Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eos issue#1743 bug fix get_bgp_neighbors() #1746

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion napalm/eos/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ def get_re_group(res, key, default=None):
except KeyError:
return default

NEIGHBOR_FILTER = "bgp neighbors vrf all | include remote AS | remote router ID |IPv[46] (Unicast|6PE):.*[0-9]+|^Local AS|Desc|BGP state" # noqa
NEIGHBOR_FILTER = "bgp neighbors vrf all | include IPv[46] (Unicast|6PE):.*[0-9]+ | grep -v ' IPv[46] Unicast:/.' | remote AS |^Local AS|Desc|BGP state |remote router ID" # noqa
bewing marked this conversation as resolved.
Show resolved Hide resolved
output_summary_cmds = self._run_commands(
["show ipv6 bgp summary vrf all", "show ip bgp summary vrf all"],
encoding="json",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BGP neighbor is 192.168.56.2, remote AS 65002, external link
BGP version 4, remote router ID 192.168.56.2, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65001, local router ID 192.168.56.3
BGP neighbor is 192.168.56.4, remote AS 65001, external link
BGP version 4, remote router ID 192.168.56.3, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65002, local router ID 192.168.56.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BGP neighbor is 2001:7f8::f10:0:2, remote AS 65002, external link
BGP version 4, remote router ID 192.168.56.2, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65001, local router ID 192.168.56.3
BGP neighbor is 2001:7f8::f10:0:3, remote AS 65001, external link
BGP version 4, remote router ID 192.168.56.3, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65002, local router ID 192.168.56.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
BGP neighbor is 10.10.10.52, remote AS 64804, external link
BGP version 4, remote router ID 10.10.10.50, VRF default
BGP state is Established, up for 55d22h
IPv4 Unicast: 4366 4
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.51, remote AS 64804, external link
BGP version 4, remote router ID 10.10.10.50, VRF default
BGP state is Established, up for 6d01h
IPv4 Unicast: 4369 4
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.47, remote AS 64805, external link
BGP version 4, remote router ID 10.10.10.48, VRF default
BGP state is Established, up for 5d23h
IPv4 Unicast: 4369 4
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.57, remote AS 64805, external link
BGP version 4, remote router ID 10.10.10.48, VRF default
BGP state is Established, up for 5d23h
IPv4 Unicast: 4368 4
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.43, remote AS 64638, external link
BGP version 4, remote router ID 10.10.10.43, VRF default
BGP state is Established, up for 49d06h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.41, remote AS 64638, external link
BGP version 4, remote router ID 10.10.10.41, VRF default
BGP state is Established, up for 22:42:48
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.29, remote AS 65118, external link
BGP version 4, remote router ID 10.10.10.29, VRF default
BGP state is Established, up for 97d08h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.35, remote AS 65118, external link
BGP version 4, remote router ID 10.10.10.35, VRF default
BGP state is Established, up for 134d05h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.39, remote AS 65118, external link
BGP version 4, remote router ID 10.10.10.39, VRF default
BGP state is Established, up for 82d03h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.38, remote AS 65118, external link
BGP version 4, remote router ID 10.10.10.38, VRF default
BGP state is Established, up for 128d07h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.34, remote AS 65118, external link
BGP version 4, remote router ID 10.10.10.29, VRF default
BGP state is Established, up for 4d06h
IPv4 Unicast: 4241 1620
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.44, remote AS 65118, external link
BGP version 4, remote router ID 10.10.10.35, VRF default
BGP state is Established, up for 81d08h
IPv4 Unicast: 3701 1620
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.45, remote AS 65118, external link
BGP version 4, remote router ID 10.10.10.39, VRF default
BGP state is Established, up for 81d08h
IPv4 Unicast: 3998 1620
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.46, remote AS 65118, external link
BGP version 4, remote router ID 10.10.10.38, VRF default
BGP state is Established, up for 124d02h
IPv4 Unicast: 3919 1620
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.58, remote AS 64638, external link
BGP version 4, remote router ID 10.10.10.43, VRF default
BGP state is Idle, Could not find interface for peer
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.49, remote AS 64638, external link
BGP version 4, remote router ID 10.10.10.41, VRF default
BGP state is Established, up for 22:44:04
IPv4 Unicast: 4369 14
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.54, remote AS 64638, external link
BGP version 4, remote router ID 10.10.10.43, VRF default
BGP state is Established, up for 6d02h
IPv4 Unicast: 4357 14
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.37, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.37, VRF default
BGP state is Established, up for 96d00h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.36, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.37, VRF default
BGP state is Established, up for 90d07h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.53, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.37, VRF default
BGP state is Established, up for 81d07h
IPv4 Unicast: 3119 2721
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.59, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.37, VRF default
BGP state is Established, up for 22d00h
IPv4 Unicast: 4369 2721
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.56, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.37, VRF default
BGP state is Established, up for 62d07h
IPv4 Unicast: 3048 2721
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.55, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.37, VRF default
BGP state is Established, up for 62d07h
IPv4 Unicast: 4219 2720
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 2.2.2.2
BGP neighbor is 10.10.10.8, remote AS 64805, external link
BGP version 4, remote router ID 10.10.10.9, VRF BLUE
BGP state is Established, up for 5d23h
IPv4 Unicast: 12 2
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.18
BGP neighbor is 10.10.10.10, remote AS 64805, external link
BGP version 4, remote router ID 10.10.10.9, VRF BLUE
BGP state is Established, up for 5d23h
IPv4 Unicast: 14 2
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.18
BGP neighbor is 10.10.10.16, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.13, VRF BLUE
BGP state is Established, up for 22d00h
IPv4 Unicast: 14 7
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.18
BGP neighbor is 10.10.10.12, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.13, VRF BLUE
BGP state is Established, up for 60d02h
IPv4 Unicast: 7 7
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.18
BGP neighbor is 10.10.10.14, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.15, VRF BLUE
BGP state is Established, up for 60d02h
IPv4 Unicast: 10 7
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.18
BGP neighbor is 10.10.10.30, remote AS 64804, external link
BGP version 4, remote router ID 10.10.10.27, VRF GREEN
BGP state is Established, up for 55d22h
IPv4 Unicast: 53 8
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.28
BGP neighbor is 10.10.10.33, remote AS 64804, external link
BGP version 4, remote router ID 10.10.10.27, VRF GREEN
BGP state is Established, up for 6d01h
IPv4 Unicast: 59 8
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.28
BGP neighbor is 10.10.10.21, remote AS 64805, external link
BGP version 4, remote router ID 10.10.10.20, VRF GREEN
BGP state is Established, up for 5d23h
IPv4 Unicast: 58 8
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.28
BGP neighbor is 10.10.10.19, remote AS 64805, external link
BGP version 4, remote router ID 10.10.10.20, VRF GREEN
BGP state is Established, up for 5d23h
IPv4 Unicast: 58 8
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.28
BGP neighbor is 10.10.10.31, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.26, VRF GREEN
BGP state is Established, up for 60d02h
IPv4 Unicast: 24 50
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.28
BGP neighbor is 10.10.10.32, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.26, VRF GREEN
BGP state is Established, up for 22d00h
IPv4 Unicast: 59 50
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.28
BGP neighbor is 10.10.10.25, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.26, VRF GREEN
BGP state is Established, up for 60d02h
IPv4 Unicast: 59 50
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.28
BGP neighbor is 10.10.10.23, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.24, VRF GREEN
BGP state is Established, up for 60d02h
IPv4 Unicast: 44 44
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.28
BGP neighbor is 10.10.10.5, remote AS 64804, external link
BGP version 4, remote router ID 10.10.10.2, VRF RED
BGP state is Established, up for 55d22h
IPv4 Unicast: 12 2
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.7
BGP neighbor is 10.10.10.1, remote AS 64804, external link
BGP version 4, remote router ID 10.10.10.2, VRF RED
BGP state is Established, up for 6d01h
IPv4 Unicast: 14 2
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.7
BGP neighbor is 10.10.10.3, remote AS 65066, external link
BGP version 4, remote router ID 10.10.10.4, VRF RED
BGP state is Established, up for 60d02h
IPv4 Unicast: 3 11
IPv6 Unicast: 0 0
Local AS is 65101, local router ID 10.10.10.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BGP neighbor is 192.168.56.2, remote AS 65002, external link
BGP version 4, remote router ID 192.168.56.2, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65001, local router ID 192.168.56.3
BGP neighbor is 192.168.56.4, remote AS 65001, external link
BGP version 4, remote router ID 192.168.56.3, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65002, local router ID 192.168.56.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BGP neighbor is 2001:7f8::f10:0:2, remote AS 65002, external link
BGP version 4, remote router ID 192.168.56.2, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65001, local router ID 192.168.56.3
BGP neighbor is 2001:7f8::f10:0:3, remote AS 65001, external link
BGP version 4, remote router ID 192.168.56.3, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65002, local router ID 192.168.56.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BGP neighbor is 192.168.56.2, remote AS 65002, external link
BGP version 4, remote router ID 192.168.56.2, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 6PE: 0 0
Local AS is 65001, local router ID 192.168.56.3
BGP neighbor is 192.168.56.4, remote AS 65001, external link
BGP version 4, remote router ID 192.168.56.3, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 6PE: 0 0
Local AS is 65002, local router ID 192.168.56.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BGP neighbor is 2001:7f8::f10:0:2, remote AS 65002, external link
BGP version 4, remote router ID 192.168.56.2, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65001, local router ID 192.168.56.3
BGP neighbor is 2001:7f8::f10:0:3, remote AS 65001, external link
BGP version 4, remote router ID 192.168.56.3, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65002, local router ID 192.168.56.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BGP neighbor is 192.168.56.2, remote AS 65002, external link
BGP version 4, remote router ID 192.168.56.2, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65001, local router ID 192.168.56.3
BGP neighbor is 192.168.56.4, remote AS 65001, external link
BGP version 4, remote router ID 192.168.56.3, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65002, local router ID 192.168.56.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BGP neighbor is 2001:7f8::f10:0:2, remote AS 65002, external link
BGP version 4, remote router ID 192.168.56.2, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65001, local router ID 192.168.56.3
BGP neighbor is 2001:7f8::f10:0:3, remote AS 65001, external link
BGP version 4, remote router ID 192.168.56.3, VRF default
BGP state is Established, up for 32d16h
IPv4 Unicast: 0 0
IPv6 Unicast: 0 0
Local AS is 65002, local router ID 192.168.56.2