diff --git a/sonic_platform_base/sonic_sfp/sfputilbase.py b/sonic_platform_base/sonic_sfp/sfputilbase.py index af6472d9e..1b29f1a76 100644 --- a/sonic_platform_base/sonic_sfp/sfputilbase.py +++ b/sonic_platform_base/sonic_sfp/sfputilbase.py @@ -467,13 +467,9 @@ def read_all_porttab_mappings(self, platform_dir, num_asic_inst): # In multi asic scenario, get all the port_config files for different asics for inst in range(num_asic_inst): port_map_dir = os.path.join(platform_dir, str(inst)) - port_map_file = os.path.join(port_map_dir, PORT_CONFIG_INI) + port_map_file = os.path.join(port_map_dir, "port_config.ini") if os.path.exists(port_map_file): self.read_porttab_mappings(port_map_file, inst) - else: - port_json_file = os.path.join(port_map_dir, PLATFORM_JSON) - if os.path.exists(port_json_file): - self.read_porttab_mappings(port_json_file, inst) def read_phytab_mappings(self, phytabfile): logical = [] diff --git a/sonic_platform_base/sonic_sfp/sfputilhelper.py b/sonic_platform_base/sonic_sfp/sfputilhelper.py index e2980361e..4ccd80314 100644 --- a/sonic_platform_base/sonic_sfp/sfputilhelper.py +++ b/sonic_platform_base/sonic_sfp/sfputilhelper.py @@ -135,13 +135,9 @@ def read_all_porttab_mappings(self, platform_dir, num_asic_inst): # In multi asic scenario, get all the port_config files for different asics for inst in range(num_asic_inst): port_map_dir = os.path.join(platform_dir, str(inst)) - port_map_file = os.path.join(port_map_dir, PORT_CONFIG_INI) + port_map_file = os.path.join(port_map_dir, "port_config.ini") if os.path.exists(port_map_file): self.read_porttab_mappings(port_map_file, inst) - else: - port_json_file = os.path.join(port_map_dir, PLATFORM_JSON) - if os.path.exists(port_json_file): - self.read_porttab_mappings(port_json_file, inst) def get_physical_to_logical(self, port_num): """Returns list of logical ports for the given physical port"""