Skip to content

Commit

Permalink
issue_811 Handling review comments: updated vrf details in failure msg
Browse files Browse the repository at this point in the history
  • Loading branch information
VitthalMagadum committed Sep 30, 2024
1 parent b9d1bea commit 07d115f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion anta/tests/routing/bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ def test(self) -> None:

# Updating failures.
if failure:
failures[prefix] = failure
failures[prefix] = {vrf: failure}

# Check if any failures
if not failures:
Expand Down
12 changes: 6 additions & 6 deletions tests/units/anta_tests/routing/test_bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4977,10 +4977,10 @@
"result": "failure",
"messages": [
"Following BGP route entry(s) or nexthop path(s) not found or origin type is not correct:\n"
"{'10.100.0.128/31': {'10.100.0.10': 'Expected `Incomplete` as the origin, but found `Igp` instead.', "
"'10.100.4.5': 'Expected `Igp` as the origin, but found `Incomplete` instead.'}, "
"'10.100.0.130/31': {'10.100.0.8': 'Expected `Incomplete` as the origin, but found `Igp` instead.', "
"'10.100.0.10': 'Expected `Incomplete` as the origin, but found `Igp` instead.'}}"
"{'10.100.0.128/31': {'default': {'10.100.0.10': 'Expected `Incomplete` as the origin, but found `Igp` instead.', "
"'10.100.4.5': 'Expected `Igp` as the origin, but found `Incomplete` instead.'}}, "
"'10.100.0.130/31': {'MGMT': {'10.100.0.8': 'Expected `Incomplete` as the origin, but found `Igp` instead.', "
"'10.100.0.10': 'Expected `Incomplete` as the origin, but found `Igp` instead.'}}}"
],
},
},
Expand Down Expand Up @@ -5043,8 +5043,8 @@
"result": "failure",
"messages": [
"Following BGP route entry(s) or nexthop path(s) not found or origin type is not correct:\n"
"{'10.100.0.128/31': {'10.100.0.10': 'Path not found.', '10.100.4.5': 'Path not found.'}, "
"'10.100.0.130/31': {'10.100.0.8': 'Path not found.', '10.100.0.10': 'Path not found.'}}"
"{'10.100.0.128/31': {'default': {'10.100.0.10': 'Path not found.', '10.100.4.5': 'Path not found.'}}, "
"'10.100.0.130/31': {'MGMT': {'10.100.0.8': 'Path not found.', '10.100.0.10': 'Path not found.'}}}"
],
},
},
Expand Down

0 comments on commit 07d115f

Please sign in to comment.