Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ def get_pg_lossless_profiles(duthost):
Args:
duthost: DUT host object
"""
pg_lossless_profiles_str = duthost.shell("redis-cli -n 0 KEYS *BUFFER_PROFILE_TABLE:pg_lossless*")["stdout_lines"]
pg_lossless_profiles_str = duthost.shell(
"sonic-db-cli APPL_DB KEYS *BUFFER_PROFILE_TABLE:pg_lossless*"
)["stdout_lines"]
pg_lossless_profiles_lst = []

for pg_lossless_profile_str in pg_lossless_profiles_str:
Expand Down
6 changes: 3 additions & 3 deletions tests/iface_namingmode/test_iface_namingmode.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def select_interface_for_mellnaox_device(setup, duthost):
ERR swss#orchagent: :- processPriorityGroup: Failed to set port:Ethernet0 pg:3 buffer profile attribute, status:-4
"""
selected_interface = ''
interface_cable_length_list = duthost.shell('redis-cli -n 4 hgetall "CABLE_LENGTH|AZURE" ')['stdout_lines']
interface_cable_length_list = duthost.shell('sonic-db-cli CONFIG_DB hgetall "CABLE_LENGTH|AZURE" ')['stdout_lines']
support_cable_length_list = ["40m", "5m"]
for intf in setup['physical_interfaces']:
if intf in interface_cable_length_list:
Expand Down Expand Up @@ -317,7 +317,7 @@ def test_show_interfaces_counter(self, setup, setup_config_mode):
if regex_int.match(line):
interfaces.append(regex_int.match(line).group(0))

assert(len(interfaces) > 0)
assert (len(interfaces) > 0)

for item in interfaces:
if mode == 'alias':
Expand Down Expand Up @@ -551,7 +551,7 @@ def test_show_queue_counters(self, setup, setup_config_mode, duthosts, enum_rand
intfsChecked += 1

# At least one interface should have been checked to have a valid result
assert(intfsChecked > 0)
assert (intfsChecked > 0)

def test_show_queue_counters_interface(self, setup_config_mode, sample_intf):
"""
Expand Down