Skip to content

Commit

Permalink
issue_811 Handling review comments: updated the pylint ignore and doc…
Browse files Browse the repository at this point in the history
…tsring
  • Loading branch information
VitthalMagadum committed Sep 25, 2024
1 parent 4046dfb commit 1408772
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions anta/tests/routing/bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
from anta.models import AntaCommand, AntaTemplate, AntaTest
from anta.tools import get_item, get_value

# pylint: disable=C0302
# TODO: Refactor to reduce the number of lines in this module later


def _add_bgp_failures(failures: dict[tuple[str, str | None], dict[str, Any]], afi: Afi, safi: Safi | None, vrf: str, issue: str | dict[str, Any]) -> None:
"""Add a BGP failure entry to the given `failures` dictionary.
Expand Down Expand Up @@ -1627,8 +1630,8 @@ class VerifyBGPRouteOrigin(AntaTest):
Expected Results
----------------
* Success: The test will pass if the BGP route's origin matches expected origin type.
* Failure: The test will fail if the BGP route's origin does not matches with expected origin type or BGP route entry(s) not found.
* Success: The test will pass if the BGP route's origin matches expected origin type and next-hop address.
* Failure: The test will fail if the BGP route's origin does not matches with expected origin type, next-hop address or BGP route entry(s) not found.
Examples
--------
Expand Down
2 changes: 1 addition & 1 deletion examples/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -694,4 +694,4 @@ anta.tests.routing:
- endpoint: 1.0.0.14/32
vias:
- type: ip
nexthop: 1.1.1.1
nexthop: 1.1.1.1

0 comments on commit 1408772

Please sign in to comment.