Skip to content

Commit

Permalink
ASIC Count is updated to the running numbers of ASIC's and not max
Browse files Browse the repository at this point in the history
possible

Signed-off-by: Abhishek Dosi <[email protected]>
  • Loading branch information
abdosi committed Sep 13, 2023
1 parent 311c639 commit 2109e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sonic-py-common/sonic_py_common/device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,15 +479,15 @@ def get_platform_info(config_db=None):
if hw_info_dict:
return hw_info_dict

from .multi_asic import get_num_asics
from .multi_asic import get_asic_presence_list

version_info = get_sonic_version_info()

hw_info_dict['platform'] = get_platform()
hw_info_dict['hwsku'] = get_hwsku()
if version_info:
hw_info_dict['asic_type'] = version_info.get('asic_type')
hw_info_dict['asic_count'] = get_num_asics()
hw_info_dict['asic_count'] = len(get_asic_presence_list())

try:
# TODO: enforce caller to provide config_db explicitly and remove its default value
Expand Down

0 comments on commit 2109e03

Please sign in to comment.