Skip to content
Merged
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
14 changes: 0 additions & 14 deletions sonic_y_cable/credo/y_cable_credo.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,6 @@ def get_active_linked_tor_side(self):
TARGET_UNKNOWN, if checking which side is linked and sending traffic API fails.
"""

if self.mux_toggle_status == self.MUX_TOGGLE_STATUS_INPROGRESS:
return YCableBase.TARGET_UNKNOWN

curr_offset = YCable.OFFSET_ACTIVE_TOR_INDICATOR

Expand Down Expand Up @@ -924,8 +922,6 @@ def is_link_active(self, target):
, False if the link is not active
"""

if self.mux_toggle_status == self.MUX_TOGGLE_STATUS_INPROGRESS:
return YCableBase.TARGET_UNKNOWN

curr_offset = YCable.OFFSET_CHECK_LINK_ACTIVE

Expand Down Expand Up @@ -996,8 +992,6 @@ def get_eye_heights(self, target):
a list, with EYE values of lane 0 lane 1 lane 2 lane 3 with corresponding index
"""

if self.mux_toggle_status == self.MUX_TOGGLE_STATUS_INPROGRESS:
return None

eye_result = []

Expand Down Expand Up @@ -1144,8 +1138,6 @@ def get_switch_count_total(self, switch_count_type, clear_on_read=False):
an integer, the number of times the Y-cable has been switched
"""

if self.mux_toggle_status == self.MUX_TOGGLE_STATUS_INPROGRESS:
return 0

count = 0

Expand Down Expand Up @@ -2185,8 +2177,6 @@ def get_local_temperature(self):
an Integer, the temperature of the local MCU
"""

if self.mux_toggle_status == self.MUX_TOGGLE_STATUS_INPROGRESS:
return 0

curr_offset = YCable.OFFSET_INTERNAL_TEMPERATURE
if self.platform_chassis is not None:
Expand Down Expand Up @@ -2214,8 +2204,6 @@ def get_nic_voltage(self):
a float, the voltage of the NIC MCU
"""

if self.mux_toggle_status == self.MUX_TOGGLE_STATUS_INPROGRESS:
return 0

if self.platform_chassis is not None:
with self.rlock.acquire_timeout(RLocker.ACQUIRE_LOCK_TIMEOUT) as lock_status:
Expand Down Expand Up @@ -2244,8 +2232,6 @@ def get_local_voltage(self):
a float, the voltage of the local MCU
"""

if self.mux_toggle_status == self.MUX_TOGGLE_STATUS_INPROGRESS:
return 0

if self.platform_chassis is not None:
with self.rlock.acquire_timeout(RLocker.ACQUIRE_LOCK_TIMEOUT) as lock_status:
Expand Down