#!/usr/bin/env ruby require 'range_operators' require 'hybrid_platforms_conductor/executable' executable = HybridPlatformsConductor::Executable.new(nodes_selection_options: false) nodes_handler = executable.nodes_handler executable.parse_options! nodes_handler.prefetch_metadata_of nodes_handler.known_nodes, :veid veids = nodes_handler. known_nodes. map { |node| nodes_handler.get_veid_of(node) ? nodes_handler.get_veid_of(node).to_i : nil }. compact executable.out "Free VEIDs: #{([10_000] + veids).missing.rangify}"