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
8 changes: 6 additions & 2 deletions osism/tasks/conductor/sonic/config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ def _add_port_configurations(
elif master_port in breakout_info["breakout_cfgs"]:
# Fallback to extracting speed from breakout mode
brkout_mode = breakout_info["breakout_cfgs"][master_port]["brkout_mode"]
if "25G" in brkout_mode:
if "10G" in brkout_mode:
port_speed = "10000"
elif "25G" in brkout_mode:
port_speed = "25000"
elif "50G" in brkout_mode:
port_speed = "50000"
Expand Down Expand Up @@ -465,7 +467,9 @@ def _get_breakout_port_valid_speeds(port_speed):

speed_int = int(port_speed)

if speed_int == 25000:
if speed_int == 10000:
return "10000,1000"
elif speed_int == 25000:
return "25000,10000,1000"
elif speed_int == 50000:
return "50000,25000,10000,1000"
Expand Down