Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(anta.tests): Add support for IPv6 for VerifyReachability test #1019

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vitthalmagadum
Copy link
Collaborator

Description

Fix VerifyReachability test as does not accept IPv6 input in YAML

Fixes #921

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have run pre-commit for code linting and typing (pre-commit run)
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (tox -e testenv)

Copy link

codspeed-hq bot commented Jan 27, 2025

CodSpeed Performance Report

Merging #1019 will not alter performance

Comparing vitthalmagadum:issue_921 (f839d76) with main (164b736)

Summary

✅ 22 untouched benchmarks

@vitthalmagadum vitthalmagadum changed the title Fix VerifyReachability test as does not accept IPv6 input in YAML fix(anta.tests): VerifyReachability test as does not accept IPv6 input in YAML Jan 27, 2025
Comment on lines +40 to +41
- source: fd12:3456:789a:1::1
destination: fd12:3456:789a:1::2
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try out using one ipv4/one ipv6 for sourfce/dest and see the result - in theory it should not work and we can block these scenarios with a validator

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checked on device during call -> block it with validator

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use EOS error message IP address family for desintation does not match source

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-01-29 at 8 43 07 AM

The framework handles command errors. Do we still need to add a validator?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gmuloc gmuloc changed the title fix(anta.tests): VerifyReachability test as does not accept IPv6 input in YAML feat(anta.tests): Add support for IPv6 for VerifyReachability test Jan 28, 2025
@vitthalmagadum vitthalmagadum requested a review from gmuloc January 29, 2025 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ANTA v1.x : VerifyReachability does not accept IPv6 input in YAML
2 participants