Skip to content

Commit

Permalink
feat(anta.tests): Add VerifyBGPPeerSession + minor fixes on other BGP…
Browse files Browse the repository at this point in the history
… tests (#987)
  • Loading branch information
carl-baillargeon authored Jan 2, 2025
1 parent 58c4de8 commit b765907
Show file tree
Hide file tree
Showing 4 changed files with 411 additions and 135 deletions.
6 changes: 4 additions & 2 deletions anta/input_models/routing/bgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ class BgpPeer(BaseModel):
outbound_route_map: str | None = None
"""Outbound route map applied, defaults to None. Required field in the `VerifyBgpRouteMaps` test."""
maximum_routes: int | None = Field(default=None, ge=0, le=4294967294)
"""The maximum allowable number of BGP routes, `0` means unlimited. Required field in the `VerifyBGPPeerRouteLimit` test"""
"""The maximum allowable number of BGP routes. `0` means unlimited. Required field in the `VerifyBGPPeerRouteLimit` test"""
warning_limit: int | None = Field(default=None, ge=0, le=4294967294)
"""Optional maximum routes warning limit. If not provided, it defaults to `0` meaning no warning limit."""
"""The warning limit for the maximum routes. `0` means no warning.
Optional field in the `VerifyBGPPeerRouteLimit` test. If not provided, the test will not verify the warning limit."""

def __str__(self) -> str:
"""Return a human-readable string representation of the BgpPeer for reporting."""
Expand Down
Loading

0 comments on commit b765907

Please sign in to comment.