[barefoot][sonic-platform] Fix sfp reset (#6746)
Fix wrong sfp reset return value Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
This commit is contained in:
parent
bcc4a52f56
commit
8b3813b637
@ -118,9 +118,9 @@ class SfpUtil(SfpUtilBase):
|
|||||||
client.pltfm_mgr.pltfm_mgr_qsfp_reset(port_num, True)
|
client.pltfm_mgr.pltfm_mgr_qsfp_reset(port_num, True)
|
||||||
return client.pltfm_mgr.pltfm_mgr_qsfp_reset(port_num, False)
|
return client.pltfm_mgr.pltfm_mgr_qsfp_reset(port_num, False)
|
||||||
|
|
||||||
status = thrift_try(qsfp_reset)
|
err = thrift_try(qsfp_reset)
|
||||||
|
|
||||||
return status
|
return not err
|
||||||
|
|
||||||
def check_transceiver_change(self):
|
def check_transceiver_change(self):
|
||||||
if not self.ready:
|
if not self.ready:
|
||||||
|
Reference in New Issue
Block a user