Skip to content

Commit

Permalink
Specify the correct dut handle (#4382)
Browse files Browse the repository at this point in the history
Description of PR
Qos sai failures seen due to changes in #3824

Signed-off-by: Neetha John <[email protected]>
  • Loading branch information
neethajohn authored Sep 29, 2021
1 parent e57717d commit 0db5b3a
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 0db5b3a

Please sign in to comment.