lib/wmap/cidr_tracker.rb
# Print summary report of a list of known CIDR blocks
Print summary report of a list of known CIDR blocks
Print summary report of a list of known CIDR blocks
def print_known_cidr_blks
		puts "Print the known CIDR Netblocks in ascendant order" if @verbose
		puts "Network CIDR, RIPE Reference Text, NETNAME"
		@known_cidr_blks_asce_index.map do |key|
			ref=@known_cidr_blks[key]['ref']
			netname=@known_cidr_blks[key]['netname']
			puts "#{key}, #{ref}, #{netname}"
		end
		puts "End of the summary"
	end
def print_known_cidr_blks puts "Print the known CIDR Netblocks in ascendant order" if @verbose puts "Network CIDR, RIPE Reference Text, NETNAME" @known_cidr_blks_asce_index . map do | key | ref = @known_cidr_blks [ key ] [ 'ref' ] netname = @known_cidr_blks [ key ] [ 'netname' ] puts "#{key}, #{ref}, #{netname}" end puts "End of the summary" end
Print summary report of a list of known CIDR blocks
Print summary report of a list of known CIDR blocks