'Set IP address to self.ipaddress from a list of networks.
Read the server\'s IP address from a list of networks provided by Nova.'

def _set_ipaddress(self, networks):

    for n in sorted(networks, reverse=True):
        if (len(networks[n]) > 0):
            self.ipaddress = networks[n][0]
            break
