#NEWLINE# def _cleanup_ips( self , server ) : #NEWLINE# #INDENT# exception_list = list ( ) #NEWLINE# fixed_ip = meta . get_server_private_ip ( server ) #NEWLINE# for ip in self . demo_cloud . list_floating_ips ( ) : #NEWLINE# #INDENT# if ( ( ip . get ( 'fixed_ip' , None ) == fixed_ip ) or ( ip . get ( 'fixed_ip_address' , None ) == fixed_ip ) ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . demo_cloud . delete_floating_ip ( ip [ 'id' ] ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# exception_list . append ( str ( e ) ) #NEWLINE# continue #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if exception_list : #NEWLINE# #INDENT# raise OpenStackCloudException ( '\n' . join ( exception_list ) )