def _assign_floating_ips(self, instances): for instance in instances: with context.set_current_instance_id(instance.instance_id): node_group = instance.node_group if node_group.floating_ip_pool: networks.assign_floating_ip(instance.instance_id, node_group.floating_ip_pool)
def _assign_floating_ips(self, instances): for instance in instances: node_group = instance.node_group if node_group.floating_ip_pool: networks.assign_floating_ip(instance.instance_id, node_group.floating_ip_pool)