Skip to content

Full Mesh Traffic Sanity verification #14678

Open
sreejithsreekumaran wants to merge 2 commits intosonic-net:202311from
sreejithsreekumaran:full_mesh_traffic_sanity_202311
Open

Full Mesh Traffic Sanity verification #14678
sreejithsreekumaran wants to merge 2 commits intosonic-net:202311from
sreejithsreekumaran:full_mesh_traffic_sanity_202311

Conversation

@sreejithsreekumaran
Copy link
Copy Markdown
Contributor

@sreejithsreekumaran sreejithsreekumaran commented Sep 20, 2024

Description of PR

Summary:
Fixes # (issue)

A test to check reachability from any source port to any destination port in the device for each traffic class.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

ptf64 topology is used to have 64 ports of the DUT connected
to 64 PTF ports.

Any platform specific information?

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

Documentation

* Added testcase to run traffic in full mesh
from all src to all dst port pair.

After all src inject traffic to a given dst, queue counters are verified
for any drop

* Removed the unwanted Try block
Fixed a bug in longest prefix match in conditional_mark
Added conditional mark to skip if not ptf64 topo

* Made adding static routes a pytest fixture

* Added fixture to configure ip on ptf interfaces while using PTF64 topo

* Changed to skip for all platforms except Cisco

* flake8 issues reported from changes in PR 9896
kevinskwang
kevinskwang previously approved these changes Sep 27, 2024
# condition is a dict which has only one item, so we use condition.keys()[0] to get its key.
if nodeid.startswith(list(condition.keys())[0]):
length = len(condition)
length = len(list(condition.keys())[0])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what does this line change's purpose?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

condition a dict with a single item and its length will always be 1 irrespective of how many rules are present.

So the key length should be checked, not the length of dict, to find the longest prefix match key.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

did you aware of this change will make the current skipped case to be run?

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.

2 participants