Skip to content

Commit

Permalink
add no bgp test for eos.get_bgp_neighbors
Browse files Browse the repository at this point in the history
  • Loading branch information
bewing committed Jul 16, 2024
1 parent b7a2c13 commit c649a94
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion napalm/eos/eos.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,8 @@ def get_bgp_neighbors(self) -> Dict[str, models.BGPStateNeighborsPerVRFDict]:
vrf_data["routerId"]
)

bgp_counters["global"] = bgp_counters.pop("default")
if "default" in bgp_counters:
bgp_counters["global"] = bgp_counters.pop("default")
return dict(bgp_counters)

def get_environment(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"vrfs": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"vrfs": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"vrfs": {}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"vrfs": {}
}

0 comments on commit c649a94

Please sign in to comment.