Skip to content

Commit

Permalink
updated docstring in validator function
Browse files Browse the repository at this point in the history
  • Loading branch information
vitthalmagadum committed Jan 16, 2025
1 parent 4aab7f0 commit 5a502c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anta/tests/routing/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class Input(AntaTest.Input):
@field_validator("route_entries")
@classmethod
def validate_route_entries(cls, route_entries: list[IPv4Routes]) -> list[IPv4Routes]:
"""Validate that 'capabilities' field is provided in each BGP peer."""
"""Validate that 'nexthops' field is provided in each route entry."""
for entry in route_entries:
if entry.nexthops is None:
msg = f"{entry} 'nexthops' field missing in the input"
Expand Down

0 comments on commit 5a502c0

Please sign in to comment.