File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414
1515 from .xcvrd_utilities .port_event_helper import PortChangeObserver
1616 from .xcvrd_utilities .xcvr_table_helper import XcvrTableHelper
17+ from sonic_platform_base .sonic_xcvr .api .public .sff8472 import Sff8472Api
1718except ImportError as e :
1819 raise ImportError (str (e ) + " - required module not found" )
1920
@@ -435,6 +436,17 @@ def task_worker(self):
435436 # Skip if these essential routines are not available
436437 continue
437438
439+ set_lp_success = (
440+ sfp .set_lpmode (False )
441+ if isinstance (api , Sff8472Api )
442+ else api .set_lpmode (False )
443+ )
444+ if not set_lp_success :
445+ self .log_error (
446+ "{}: Failed to take module out of low power mode." .format (
447+ lport )
448+ )
449+
438450 if active_lanes is None :
439451 active_lanes = self .get_active_lanes_for_lport (lport , subport_idx ,
440452 len (lanes_list ),
You can’t perform that action at this time.
0 commit comments