Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/sonic_ax_impl/mibs/ietf/rfc2737.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,8 @@ def _update_entity_cache(self, psu_name):
return

psu_relation_info = self.get_physical_relation_info(psu_name)
if not psu_relation_info:
return
psu_position, psu_parent_name = get_db_data(psu_relation_info, PhysicalRelationInfoDB)
psu_position = int(psu_position)
psu_sub_id = get_psu_sub_id(psu_position)
Expand Down Expand Up @@ -1039,6 +1041,8 @@ def _update_entity_cache(self, fan_name):
return

fan_relation_info = self.get_physical_relation_info(fan_name)
if not fan_relation_info:
return
fan_position, fan_parent_name = get_db_data(fan_relation_info, PhysicalRelationInfoDB)
fan_position = int(fan_position)
if fan_parent_name in self.mib_updater.physical_name_to_oid_map:
Expand Down
Loading