Skip to content
This repository has been archived by the owner on Feb 10, 2018. It is now read-only.

Commit

Permalink
Merge pull request #210 from ckishimo/devel-bgp3
Browse files Browse the repository at this point in the history
fix advertised_prefix_count when None
  • Loading branch information
mirceaulinic committed Sep 29, 2017
2 parents 4275c95 + b11cfc8 commit 04ec8ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion napalm_junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,10 @@ def _bgp_iter_core(neighbor_data, instance=None):
}
for rib_entry in neighbor_rib_stats:
for elem in rib_entry[1]:
neighbor_rib_details[elem[0]] += elem[1]
if elem[1] is None:
neighbor_rib_details[elem[0]] += 0
else:
neighbor_rib_details[elem[0]] += elem[1]
neighbor_details.update(neighbor_rib_details)
bgp_neighbors[instance_name][remote_as].append(neighbor_details)

Expand Down

0 comments on commit 04ec8ba

Please sign in to comment.