8000 fix(anta.tests): Fix VerifyInterfaceUtilization and other interface tests to support subinterfaces by carl-baillargeon · Pull Request #1231 · aristanetworks/anta · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(anta.tests): Fix VerifyInterfaceUtilization and other interface tests to support subinterfaces #1231

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

Merged

Conversation

carl-baillargeon
Copy link
Contributor

Description

  • Refactor VerifyInterfaceUtilization to use show interfaces status instead of show interfaces to fetch each interface bandwidth and duplex mode.
  • Clean VerifyInterfaceUtilization unit tests and add various scenarios
  • Update all interface tests to use separator=".." in get_value to properly fetch the subinterfaces

Fixes #1230

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 May 30, 2025

CodSpeed Performance Report

Merging #1231 will not alter performance

Comparing carl-baillargeon:fix/issue_1230 (79be89f) with main (669660d)

Summary

✅ 26 untouched benchmarks

@carl-baillargeon carl-baillargeon changed the title fix(anta.tests): Fix VerifyInterfaceUtilization to support subinterfaces fix(anta.tests): Fix VerifyInterfaceUtilization and other interface tests to support subinterfaces Jun 2, 2025
Copy link
sonarqubecloud bot commented Jun 2, 2025

Copy link
Collaborator
@vitthalmagadum vitthalmagadum left a comment

Choose a reason for hiding this comment

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

LGTM

@carl-baillargeon carl-baillargeon merged commit 26a4da4 into aristanetworks:main Jun 2, 2025
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(anta.tests): VerifyInterfaceUtilization doesn't support subinterfaces
2 participants
0