# File lib/fog/ecloud/mock_data_classes.rb, line 377 def address subnet_ips.first end
# File lib/fog/ecloud/mock_data_classes.rb, line 381 def broadcast subnet_ips.last end
# File lib/fog/ecloud/mock_data_classes.rb, line 346 def dns "8.8.8.8" end
# File lib/fog/ecloud/mock_data_classes.rb, line 360 def extensions @extensions ||= MockNetworkExtensions.new({}, self) end
# File lib/fog/ecloud/mock_data_classes.rb, line 350 def features [ { :type => :FenceMode, :value => "isolated" } ] end
# File lib/fog/ecloud/mock_data_classes.rb, line 338 def gateway self[:gateway] || subnet_ips[1] end
# File lib/fog/ecloud/mock_data_classes.rb, line 356 def ip_collection @ip_collection ||= MockNetworkIps.new({}, self) end
# File lib/fog/ecloud/mock_data_classes.rb, line 330 def name self[:name] || subnet end
# File lib/fog/ecloud/mock_data_classes.rb, line 342 def netmask self[:netmask] || subnet_ipaddr.mask end
# File lib/fog/ecloud/mock_data_classes.rb, line 364 def random_ip usable_subnet_ips[rand(usable_subnet_ips.length)] end
for TM eCloud. should probably be a subclass
# File lib/fog/ecloud/mock_data_classes.rb, line 369 def rnat self[:rnat] end
Generated with the Darkfish Rdoc Generator 2.