Skip to content

Commit

Permalink
remove gang port parsing (sonic-net#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
keboliu authored and lguohan committed Mar 9, 2019
1 parent f7114be commit 579bfde
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions sonic_sfp/sfputilbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 579bfde

Please sign in to comment.