Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pfcwd] fix test_pfcwd_mmu_change from pfcwd_function (#3473)
Summary: updated method get_mmu_params() * to check whether the buffer configurations are in config db or appl db via checking whether buffer_model exists in DEVICE_METADATA|localhost * fetch the buffer configuration from the config db/appl db accordingly. Signed-off-by: Anton <antonh@nvidia.com> What is the motivation for this PR? fix tests in pfcwd/test_pfcwd_function.py previously the test "test_pfcwd_mmu_change" failed with error: '> )[0].encode("utf-8") E IndexError: list index out of range' In method "get_mmu_params", the reason for it was the "NULL" output in request asic.run_redis_cmd( argv = [ "redis-cli", "-n", db, "HGET", "BUFFER_PG|{}|3-4".format(port), "profile" ] )
- Loading branch information