From 44f4abe9f7c6085ee6dd9436f6b5ebf4e5a799b6 Mon Sep 17 00:00:00 2001 From: Andriy Kokhan Date: Tue, 15 Oct 2019 07:47:28 -0700 Subject: [PATCH] [platform] Fixed return code processing in set_low_power_mode() for BFN platform Signed-off-by: Andriy Kokhan --- .../barefoot/x86_64-accton_wedge100bf_32x-r0/plugins/sfputil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device/barefoot/x86_64-accton_wedge100bf_32x-r0/plugins/sfputil.py b/device/barefoot/x86_64-accton_wedge100bf_32x-r0/plugins/sfputil.py index 5e75376baa27..1daee453573e 100644 --- a/device/barefoot/x86_64-accton_wedge100bf_32x-r0/plugins/sfputil.py +++ b/device/barefoot/x86_64-accton_wedge100bf_32x-r0/plugins/sfputil.py @@ -135,7 +135,7 @@ def set_low_power_mode(self, port_num, lpmode): self.thrift_setup() status = pltfm_mgr.pltfm_mgr_qsfp_lpmode_set(port_num, lpmode) self.thrift_teardown() - return status + return (status == 0) def reset(self, port_num): # Check for invalid port_num