lib/yao/resources/subnet.rb in yao-0.13.4 vs lib/yao/resources/subnet.rb in yao-0.14.0

- old
+ new

@@ -5,9 +5,10 @@ include TenantAssociationable friendly_attributes :name, :cidr, :gateway_ip, :network_id, :ip_version, :dns_nameservers, :host_routes, :enable_dhcp + # @return [Array<Range>] def allocation_pools self["allocation_pools"].map do |pool| pool["start"]..pool["end"] end end