Skip to content

Commit

Permalink
Addressed review comments: updated failure msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitthalmagadum committed Nov 19, 2024
1 parent 1eca772 commit d48f57c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion anta/tests/routing/bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def test(self) -> None:
is_active = route_paths["active"]
is_valid = route_paths["valid"]
if not is_active or not is_valid:
self.result.is_failure(f"{peer} {route_type} route: {route} - Invalid/inactive; Valid: {is_valid}, Active: {is_active}")
self.result.is_failure(f"{peer} {route_type} route: {route} - Valid: {is_valid}, Active: {is_active}")


class VerifyBGPPeerMPCaps(AntaTest):
Expand Down
8 changes: 4 additions & 4 deletions tests/units/anta_tests/routing/test_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,13 +1325,13 @@ def test_check_bgp_neighbor_capability(input_dict: dict[str, bool], expected: bo
"expected": {
"result": "failure",
"messages": [
"Peer: 172.30.11.1 VRF: default Advertised route: 192.0.254.3/32 - Invalid/inactive; Valid: False, Active: True",
"Peer: 172.30.11.1 VRF: default Advertised route: 192.0.254.3/32 - Valid: False, Active: True",
"Peer: 172.30.11.1 VRF: default Advertised route: 192.0.254.51/32 - Not found",
"Peer: 172.30.11.1 VRF: default Received route: 192.0.254.31/32 - Not found",
"Peer: 172.30.11.1 VRF: default Received route: 192.0.255.4/32 - Invalid/inactive; Valid: False, Active: False",
"Peer: 172.30.11.1 VRF: default Received route: 192.0.255.4/32 - Valid: False, Active: False",
"Peer: 172.30.11.5 VRF: default Advertised route: 192.0.254.31/32 - Not found",
"Peer: 172.30.11.5 VRF: default Advertised route: 192.0.254.5/32 - Invalid/inactive; Valid: False, Active: True",
"Peer: 172.30.11.5 VRF: default Received route: 192.0.254.3/32 - Invalid/inactive; Valid: True, Active: False",
"Peer: 172.30.11.5 VRF: default Advertised route: 192.0.254.5/32 - Valid: False, Active: True",
"Peer: 172.30.11.5 VRF: default Received route: 192.0.254.3/32 - Valid: True, Active: False",
"Peer: 172.30.11.5 VRF: default Received route: 192.0.255.41/32 - Not found",
],
},
Expand Down

0 comments on commit d48f57c

Please sign in to comment.