diff --git a/sonic_sfp/sfputilbase.py b/sonic_sfp/sfputilbase.py index 60ecb7b9d527..7356e3d30e70 100644 --- a/sonic_sfp/sfputilbase.py +++ b/sonic_sfp/sfputilbase.py @@ -384,15 +384,6 @@ def read_porttab_mappings(self, porttabfile): physical_to_logical[fp_port_index].append( portname) - if (fp_port_index - last_fp_port_index) > 1: - # last port was a gang port - for p in range(last_fp_port_index+1, fp_port_index): - logical_to_physical[last_portname].append(p) - if physical_to_logical.get(p) is None: - physical_to_logical[p] = [last_portname] - else: - physical_to_logical[p].append(last_portname) - last_fp_port_index = fp_port_index last_portname = portname