Skip to content

Commit

Permalink
NXOS_SSH - fix crash issue in get_bgp_neighbors() (#678)
Browse files Browse the repository at this point in the history
* fix crash issue in get_bgp_neighbors() when address family is EVPN en if l2vpn is not supported

* Added support of l2vpn address family

* adding a new test case for the get_bgp_neighbors() about L2VPN
  • Loading branch information
FloLaco authored and dbarrosop committed Apr 17, 2018
1 parent bbf371c commit c55c7c0
Show file tree
Hide file tree
Showing 4 changed files with 460 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm/nxos_ssh/nxos_ssh.py
Expand Up @@ -314,9 +314,9 @@ def bgp_summary_parser(bgp_summary):
if len(bgp_summary.strip().splitlines()) <= 1:
return {}

allowed_afi = ['ipv4', 'ipv6']
allowed_afi = ['ipv4', 'ipv6', 'l2vpn']
vrf_regex = r"^BGP summary information for VRF\s+(?P<vrf>\S+),"
afi_regex = r"^BGP summary information.*address family (?P<afi>\S+ Unicast)"
afi_regex = r"^BGP summary information.*address family (?P<afi>\S+ (?:Unicast|EVPN))"
local_router_regex = (r"^BGP router identifier\s+(?P<router_id>\S+)"
r",\s+local AS number\s+(?P<local_as>\S+)")

Expand Down

0 comments on commit c55c7c0

Please sign in to comment.