#NEWLINE# def check_bond_slaves_speeds( self ) : #NEWLINE# #INDENT# 'check bond slaves speeds are equal' #NEWLINE# for node in self . cluster . nodes : #NEWLINE# #INDENT# for bond in node . bond_interfaces : #NEWLINE# #INDENT# slaves_speed = set ( [ slave . current_speed for slave in bond . slaves ] ) #NEWLINE# if ( ( len ( slaves_speed ) != 1 ) or ( slaves_speed . pop ( ) is None ) ) : #NEWLINE# #INDENT# warn_msg = "Node '{0}': interface '{1}' slave NICs have different or unrecognized speeds" . format ( node . name , bond . name ) #NEWLINE# logger . warn ( slaves_speed ) #NEWLINE# self . err_msgs . append ( warn_msg )