Skip to content

Commit

Permalink
Merge pull request #2088 from vishnubraj/fix_typo
Browse files Browse the repository at this point in the history
Closes #2028: Fix typo
  • Loading branch information
mirceaulinic authored May 21, 2024
2 parents 25b7684 + c898c02 commit bc71ca0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion napalm/base/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def get_lldp_neighbors_detail(

def get_bgp_config(
self, group: str = "", neighbor: str = ""
) -> models.BPGConfigGroupDict:
) -> models.BGPConfigGroupDict:
"""
Returns a dictionary containing the BGP configuration.
Can return either the whole config, either the config only for a group or neighbor.
Expand Down
4 changes: 2 additions & 2 deletions napalm/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@
"AFDict", {"sent_prefixes": int, "accepted_prefixes": int, "received_prefixes": int}
)

BPGConfigGroupDict = TypedDict(
"BPGConfigGroupDict",
BGPConfigGroupDict = TypedDict(
"BGPConfigGroupDict",
{
"type": str,
"description": str,
Expand Down
2 changes: 1 addition & 1 deletion napalm/base/test/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ def test_get_bgp_config(self):
result = len(get_bgp_config) > 0

for bgp_group in get_bgp_config.values():
result = result and self._test_model(models.BPGConfigGroupDict, bgp_group)
result = result and self._test_model(models.BGPConfigGroupDict, bgp_group)
for bgp_neighbor in bgp_group.get("neighbors", {}).values():
result = result and self._test_model(
models.BGPConfigNeighborDict, bgp_neighbor
Expand Down
2 changes: 1 addition & 1 deletion napalm/base/test/getters.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def test_get_bgp_config(self, test_case):
assert get_bgp_config == {} or len(get_bgp_config) > 0

for bgp_group in get_bgp_config.values():
assert helpers.test_model(models.BPGConfigGroupDict, bgp_group)
assert helpers.test_model(models.BGPConfigGroupDict, bgp_group)
for bgp_neighbor in bgp_group.get("neighbors", {}).values():
assert helpers.test_model(models.BGPConfigNeighborDict, bgp_neighbor)

Expand Down

0 comments on commit bc71ca0

Please sign in to comment.