We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 311c639 commit 2109e03Copy full SHA for 2109e03
src/sonic-py-common/sonic_py_common/device_info.py
@@ -479,15 +479,15 @@ def get_platform_info(config_db=None):
479
if hw_info_dict:
480
return hw_info_dict
481
482
- from .multi_asic import get_num_asics
+ from .multi_asic import get_asic_presence_list
483
484
version_info = get_sonic_version_info()
485
486
hw_info_dict['platform'] = get_platform()
487
hw_info_dict['hwsku'] = get_hwsku()
488
if version_info:
489
hw_info_dict['asic_type'] = version_info.get('asic_type')
490
- hw_info_dict['asic_count'] = get_num_asics()
+ hw_info_dict['asic_count'] = len(get_asic_presence_list())
491
492
try:
493
# TODO: enforce caller to provide config_db explicitly and remove its default value
0 commit comments