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

[qos] Specify correct handle to access dut resources #4382

Merged
merged 1 commit into from
Sep 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/qos/qos_sai_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def __computeBufferThreshold(self, dut_asic, bufferProfile):
else:
db = "4"
keystr = "BUFFER_POOL|"
if check_qos_db_fv_reference_with_table(duthost) == True:
if check_qos_db_fv_reference_with_table(dut_asic) == True:
pool = bufferProfile["pool"].encode("utf-8").translate(None, "[]")
else:
pool = keystr + bufferProfile["pool"].encode("utf-8")
Expand All @@ -171,7 +171,7 @@ def __updateVoidRoidParams(self, dut_asic, bufferProfile):
Returns:
Updates bufferProfile with VOID/ROID obtained from Redis db
"""
if check_qos_db_fv_reference_with_table(duthost) == True:
if check_qos_db_fv_reference_with_table(dut_asic) == True:
if self.isBufferInApplDb(dut_asic):
bufferPoolName = bufferProfile["pool"].encode("utf-8").translate(
None, "[]").replace("BUFFER_POOL_TABLE:",''
Expand Down Expand Up @@ -220,7 +220,7 @@ def __getBufferProfile(self, request, dut_asic, os_version, table, port, priorit
keystr = "{0}|{1}|{2}".format(table, port, priorityGroup)
bufkeystr = "BUFFER_POOL|"

if check_qos_db_fv_reference_with_table(duthost) == True:
if check_qos_db_fv_reference_with_table(dut_asic) == True:
bufferProfileName = dut_asic.run_redis_cmd(
argv = ["redis-cli", "-n", db, "HGET", keystr, "profile"]
)[0].encode("utf-8").translate(None, "[]")
Expand Down Expand Up @@ -289,7 +289,7 @@ def __getEcnWredParam(self, dut_asic, table, port):
Returns:
wredProfile (dict): Map of ECN/WRED attributes
"""
if check_qos_db_fv_reference_with_table(duthost) == True:
if check_qos_db_fv_reference_with_table(dut_asic) == True:
wredProfileName = dut_asic.run_redis_cmd(
argv = [
"redis-cli", "-n", "4", "HGET",
Expand Down Expand Up @@ -345,7 +345,7 @@ def __getSchedulerParam(self, dut_asic, port, queue):
Returns:
SchedulerParam (dict): Map of scheduler parameters
"""
if check_qos_db_fv_reference_with_table(duthost) == True:
if check_qos_db_fv_reference_with_table(dut_asic) == True:
schedProfile = dut_asic.run_redis_cmd(
argv = [
"redis-cli", "-n", "4", "HGET",
Expand Down