[barefoot][device][plugins] Fix sfp reset (#6745)

Fix sfp reset in Barefoot's sfputil

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
This commit is contained in:
Volodymyr Boiko 2021-02-11 04:32:22 +02:00 committed by GitHub
parent c5a1132d44
commit 11937d379c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,7 @@ class SfpUtil(SfpUtilBase):
status = pltfm_mgr.pltfm_mgr_qsfp_reset(port_num, True)
status = pltfm_mgr.pltfm_mgr_qsfp_reset(port_num, False)
self.thrift_teardown()
return status
return (status == 0)
def check_transceiver_change(self):
if not self.ready: