Skip to content

Commit 2b1b3bb

Browse files
committed
1. revert sonic-net#11763
Change-Id: I753593ed128bd4c6a6915bca8eebf788743d2bd5
1 parent 7cb0e7c commit 2b1b3bb

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

tests/common/devices/onyx.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -189,19 +189,6 @@ def set_speed(self, interface_name, speed):
189189
speed = 'auto'
190190
else:
191191
speed = speed[:-3] + 'G'
192-
# The speed support list for onyx is like '1G 10G 25G 40G 50Gx1 50Gx2 100Gx2 100Gx4 200Gx4'.
193-
# We need to set the speed according to the speed support list.
194-
# For example, when dut and fanout all support 50G,
195-
# if support speed list of fanout just includes 50Gx1 not 50G,
196-
# we need to set the speed with 50Gx1 instead of 50G, otherwise, the port can not be up.
197-
all_support_speeds = self.get_supported_speeds(interface_name, raw_data=True)
198-
for support_speed in all_support_speeds:
199-
if speed in support_speed:
200-
logger.info("Speed {} find the matched support speed:{} ".format(speed, support_speed))
201-
speed = support_speed
202-
break
203-
logger.info("set speed is {}".format(speed))
204-
205192
if autoneg_mode or speed == 'auto':
206193
out = self.host.onyx_config(
207194
lines=['shutdown', 'speed {}'.format(speed), 'no shutdown'],

0 commit comments

Comments
 (0)