#NEWLINE# def set_node_id( self ) : #NEWLINE# #INDENT# node_ids = self . fetch_columns_for_nodes ( type = 'summary' , stanza = 'service' , header_columns = [ 'Node' ] , column_to_find = [ 'Node' , 'Id' ] , symbol_to_neglct = '.' ) #NEWLINE# if ( not node_ids ) : #NEWLINE# #INDENT# node_ids = self . fetch_columns_for_nodes ( type = 'summary' , stanza = 'network' , header_columns = [ 'Node' ] , column_to_find = [ 'Node' , 'Id' ] , symbol_to_neglct = '.' ) #NEWLINE# #UNINDENT# if ( ( not node_ids ) and ( self . get_node_count ( ) == 1 ) ) : #NEWLINE# #INDENT# service_stats = self . get_data ( type = 'statistics' , stanza = 'service' ) #NEWLINE# for node in self . nodes : #NEWLINE# #INDENT# self . nodes [ node ] . set_node_id ( logutil . fetch_value_from_dic ( service_stats , [ node , 'paxos_principal' ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if node_ids : #NEWLINE# #INDENT# for node in node_ids : #NEWLINE# #INDENT# if ( node in self . nodes ) : #NEWLINE# #INDENT# self . nodes [ node ] . set_node_id ( node_ids [ self ] )