#NEWLINE# def getFloatingIpFromServerForNetwork( server , network ) : #NEWLINE# #INDENT# for addr in server . addresses . get ( network ) : #NEWLINE# #INDENT# if ( addr . get ( 'OS-EXT-IPS:type' ) == 'floating' ) : #NEWLINE# #INDENT# return addr [ 'addr' ] #NEWLINE# #UNINDENT# #UNINDENT# return None