Skip to content

Commit

Permalink
change to sonic-db-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelmsft committed Feb 5, 2022
1 parent 0bb712b commit 729e4f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/generic_config_updater/test_incremental_qos.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def get_neighbor_type_to_pg_headroom_map(duthost):

expected_profile = 'pg_lossless_{}_{}_profile'.format(port_speed, cable_length)

xoff = int(duthost.shell('redis-cli hget "BUFFER_PROFILE_TABLE:{}" xoff'.format(expected_profile))['stdout'])
xon = int(duthost.shell('redis-cli hget "BUFFER_PROFILE_TABLE:{}" xon'.format(expected_profile))['stdout'])
xoff = int(duthost.shell('sonic-db-cli APPL_DB hget "BUFFER_PROFILE_TABLE:{}" xoff'.format(expected_profile))['stdout'])
xon = int(duthost.shell('sonic-db-cli APPL_DB hget "BUFFER_PROFILE_TABLE:{}" xon'.format(expected_profile))['stdout'])
pg_headroom = int((xoff + xon) / 1024)

neighbor_type = neighbor_to_type_map[neighbor]
Expand Down

0 comments on commit 729e4f7

Please sign in to comment.