diff --git a/anta/tests/routing/bgp.py b/anta/tests/routing/bgp.py index 3fa82d202..f081f045b 100644 --- a/anta/tests/routing/bgp.py +++ b/anta/tests/routing/bgp.py @@ -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): diff --git a/tests/units/anta_tests/routing/test_bgp.py b/tests/units/anta_tests/routing/test_bgp.py index fb7d869d0..b86a295b5 100644 --- a/tests/units/anta_tests/routing/test_bgp.py +++ b/tests/units/anta_tests/routing/test_bgp.py @@ -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", ], },