def get_ips(self, instance_id):
        """
        Retrieves all IP addresses associated to a given instance.

        :return: tuple (IPs)
        """
        self._init_az_api()
        cluster_name, node_name = instance_id
        # XXX: keep in sync with contents of `vm_deployment_template`
        ip_name = ('{node_name}-public-ip'.format(node_name=node_name))
        ip = self._network_client.public_ip_addresses.get(cluster_name, ip_name)
        if (ip.provisioning_state == 'Succeeded' and ip.ip_address):
            return [ip.ip_address]
        else:
            return []
def get_ips ( self , instance_id ) : self . _init_az_api ( ) cluster_name , node_name = instance_id ip_name = ( '{node_name}-public-ip' . format ( node_name = node_name ) ) ip = self . _network_client . public_ip_addresses . get ( cluster_name , ip_name ) if ( ip . provisioning_state == 'Succeeded' and ip . ip_address ) : return [ ip . ip_address ] else : return [ ]
Retrieves all IP addresses associated to a given instance.

        :return: tuple (IPs)