'Return the server\'s IP of the given type and version.'

def get_ip(self, server, net_type, ip_version):

    if (net_type in server.addresses):
        for ip in server.addresses[net_type]:
            if (ip['version'] == ip_version):
                return ip['addr']
