Skip to content

Bugfixes for new Ixia card#389

Merged
mgheorghe merged 5 commits intodentproject:mainfrom
PLVision:test_fixes_for_2nd_card
Aug 15, 2023
Merged

Bugfixes for new Ixia card#389
mgheorghe merged 5 commits intodentproject:mainfrom
PLVision:test_fixes_for_2nd_card

Conversation

@SerhiyBoikoPLV
Copy link
Copy Markdown
Contributor

Fix tests that started failing after a new Ixia card was installed.

StepanVovkPLV and others added 5 commits August 8, 2023 11:24
Signed-off-by: Stepan Vovk <stepan.vovk@plvision.eu>
Check that only 1 port supports the required speed.

Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Make sure tgen is not oversubscribed.

Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
Tgen needs more time to calculate the correct traffic rate.

Signed-off-by: Serhiy Boiko <serhiy.boiko@plvision.eu>
@mgheorghe mgheorghe self-requested a review August 15, 2023 20:41
for row in stats.Rows:
err_msg = f"Expected 0.00 loss, actual {float(row['Loss %'])}"
assert tgen_utils_get_loss(row) == 0.000, err_msg
assert tgen_utils_get_loss(row) < 0.1, err_msg
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.

tolerances are good but sometimes dangerous
if rate is correct and all
why would any packet get lost?

for example whe na device is freshly booted and FDB is empty if you send too much traffic some devices will drop it.
but that can be fixed in script by sending a "learning" portion to alow FDB to be populated and than send the test traffic and expecting o loss

or if traffic is flowing, there can be packets in flight and tx will not perfectly match rx, but stoppi

any way this < 0.1 is solving the intermittent failures now but may hide real bugs in future.

@mgheorghe mgheorghe merged commit 8c5d72a into dentproject:main Aug 15, 2023
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.

4 participants