Skip to content

Commit 2109e03

Browse files
committed
ASIC Count is updated to the running numbers of ASIC's and not max
possible Signed-off-by: Abhishek Dosi <[email protected]>
1 parent 311c639 commit 2109e03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sonic-py-common/sonic_py_common/device_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,15 @@ def get_platform_info(config_db=None):
479479
if hw_info_dict:
480480
return hw_info_dict
481481

482-
from .multi_asic import get_num_asics
482+
from .multi_asic import get_asic_presence_list
483483

484484
version_info = get_sonic_version_info()
485485

486486
hw_info_dict['platform'] = get_platform()
487487
hw_info_dict['hwsku'] = get_hwsku()
488488
if version_info:
489489
hw_info_dict['asic_type'] = version_info.get('asic_type')
490-
hw_info_dict['asic_count'] = get_num_asics()
490+
hw_info_dict['asic_count'] = len(get_asic_presence_list())
491491

492492
try:
493493
# TODO: enforce caller to provide config_db explicitly and remove its default value

0 commit comments

Comments
 (0)