Skip to content

Commit

Permalink
Remove duplicate definition of get_asic_conf_file_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque committed Aug 10, 2020
1 parent 46e6ed4 commit 9d8d8e4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/sonic-py-common/sonic_py_common/device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,17 +243,6 @@ def get_npu_device_id(npu_id):
return device_id


def get_asic_conf_file_path(platform):
asic_conf_path_candidates = []
asic_conf_path_candidates.append(os.path.join('/usr/share/sonic/platform', ASIC_CONF_FILENAME))
if platform is not None:
asic_conf_path_candidates.append(os.path.join(SONIC_DEVICE_PATH, platform, ASIC_CONF_FILENAME))
for asic_conf_file_path in asic_conf_path_candidates:
if os.path.isfile(asic_conf_file_path):
return asic_conf_file_path
return None


def get_namespaces():
"""
In a multi NPU platform, each NPU is in a Linux Namespace.
Expand Down

0 comments on commit 9d8d8e4

Please sign in to comment.