Skip to content

Test TX drop counter on oper down#17014

Open
BYGX-wcr wants to merge 2 commits intosonic-net:masterfrom
BYGX-wcr:test_tx_drop_counter_on_oper_down
Open

Test TX drop counter on oper down#17014
BYGX-wcr wants to merge 2 commits intosonic-net:masterfrom
BYGX-wcr:test_tx_drop_counter_on_oper_down

Conversation

@BYGX-wcr
Copy link
Contributor

Description of PR

Summary: Add a test case that verifies the TX_DROP counter will not be increased when an interface is oper down.
Fixes #15874 (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@BYGX-wcr BYGX-wcr requested a review from kevinskwang February 18, 2025 23:08
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@BYGX-wcr
Copy link
Contributor Author

@kevinskwang , can you please review this PR? This is a part of the test gap hackathon.

@StormLiangMS
Copy link
Collaborator

hi @alawing @kevinwangsk could you help to review the new test case?

'TX_DROP counters should not be incremented when the interface is administratively down')

# recover the neighbor interface
nbrhosts[neighbor]['host'].no_shutdown(neighbor_intf)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to move to intf shut/unshut to a fixture that handles test setup and teardown, that way the intf will be brought back up even if the test fails.

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.

[Test Gap][drop_counter][all] while the oper state is down at egress, need to validate there is no tx_drop counter increase on that egress interface

4 participants