Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrallen committed May 12, 2021
1 parent b11a752 commit 9aff9c7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/sonic-py-common/sonic_py_common/device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import yaml
from natsort import natsorted

from . import multi_asic

# TODO: Replace with swsscommon
from swsssdk import ConfigDBConnector, SonicDBConfig, SonicV2Connector

Expand Down Expand Up @@ -46,15 +44,16 @@ def get_platform_info():
"""
This function is used to get the HW info helper function
"""
from .multi_asic import get_num_asics

hw_info_dict = {}

version_info = device_info.get_sonic_version_info()
version_info = get_sonic_version_info()

hw_info_dict['platform'] = device_info.get_platform()
hw_info_dict['hwsku'] = device_info.get_hwsku()
hw_info_dict['platform'] = get_platform()
hw_info_dict['hwsku'] = get_hwsku()
hw_info_dict['asic_type'] = version_info['asic_type']
hw_info_dict['asic_count'] = multi_asic.get_num_asics()
hw_info_dict['asic_count'] = get_num_asics()

return hw_info_dict

Expand Down

0 comments on commit 9aff9c7

Please sign in to comment.