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

Add pfcwd interval config tests #4811

Merged
merged 7 commits into from
Feb 8, 2022
Merged

Conversation

isabelmsft
Copy link
Contributor

@isabelmsft isabelmsft commented Dec 4, 2021

Description of PR

Summary:
This PR will remain in draft mode until YANG model validation errors are resolved. Presently, the test case only runs successfully when the following YANG models are manually removed:
sonic-bgp-neighbor.yang
sonic-device_metadata.yang
sonic-feature.yang
sonic-flex_counter.yang
sonic-scheduler.yang
sonic-queue.yang
sonic-buffer-port-egress-profile-list.yang
sonic-buffer-port-ingress-profile-list.yang

Type of change

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

Back port request

  • 201911

Approach

What is the motivation for this PR?

Add pfcwd poll interval config tests
End to End test support for Generic Updater apply-patch

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

@isabelmsft isabelmsft marked this pull request as ready for review January 26, 2022 19:09
@isabelmsft isabelmsft requested a review from a team as a code owner January 26, 2022 19:09
tests/generic_config_updater/test_pfcwd_interval.py Outdated Show resolved Hide resolved
tests/generic_config_updater/test_pfcwd_interval.py Outdated Show resolved Hide resolved
cmd = "sudo pfcwd interval {}".format(value)
else:
cmd = "sonic-db-cli CONFIG_DB del \PFC_WD\GLOBAL\POLL_INTERVAL"

Copy link
Contributor

Choose a reason for hiding this comment

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

Seems we didn't run the cmd?

value: expected value of POLL_INTERVAL
"""
def _confirm_value_in_flex_counter_db():
poll_interval = duthost.shell('redis-cli -n 5 hget FLEX_COUNTER_GROUP_TABLE:PFC_WD POLL_INTERVAL')["stdout"]
Copy link
Contributor

@qiluo-msft qiluo-msft Jan 29, 2022

Choose a reason for hiding this comment

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

redis-cli -n 5

Suggest use sonic-db-cli PFC_WD_DB, which is flexible together with multi-DB or multi-ASIC feature. #Closed

@isabelmsft isabelmsft merged commit c3bcea8 into sonic-net:master Feb 8, 2022
@congh-nvidia
Copy link
Contributor

Hi @isabelmsft ,
I want to ask if the pfcwd config is default on your DUT? I ran this test on our testbed, it failed because get_new_interval got nothing, because no pfcwd had been configured on the DUT by default. Thanks.

@isabelmsft
Copy link
Contributor Author

Hi @isabelmsft , I want to ask if the pfcwd config is default on your DUT? I ran this test on our testbed, it failed because get_new_interval got nothing, because no pfcwd had been configured on the DUT by default. Thanks.

Hi @congh-nvidia , the pfcwd config was set by default on the DUTs I previously tested with, but thanks for asking- I did find that not all DUTs have this set by default.

So I opened a new PR which configures pfcwd in the test: #5662

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