#NEWLINE# def _chk_addr_relation_route( self , address_id ) : #NEWLINE# #INDENT# relate_list = [ ] #NEWLINE# gateways = self . routing_tbl . get_gateways ( ) #NEWLINE# for gateway in gateways : #NEWLINE# #INDENT# address = self . address_data . get_data ( ip = gateway ) #NEWLINE# if ( address is not None ) : #NEWLINE# #INDENT# if ( ( address_id == REST_ALL ) and ( address . address_id not in relate_list ) ) : #NEWLINE# #INDENT# relate_list . append ( address . address_id ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( address . address_id == address_id ) : #NEWLINE# #INDENT# relate_list = [ address_id ] #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return relate_list