lib/infoblox/resource/range.rb in infoblox-0.2.19 vs lib/infoblox/resource/range.rb in infoblox-0.3.0

- old
+ new

@@ -1,22 +1,26 @@ module Infoblox class Range < Resource - remote_attr_accessor :start_addr, :end_addr, :network_view, :extattrs + remote_attr_accessor :end_addr, + :extattrs, + :extensible_attributes, + :network_view, + :start_addr wapi_object "range" ## # Invoke the same-named function on the range resource in WAPI, # returning an array of available IP addresses. # You may optionally specify how many IPs you want (num) and which ones to - # exclude from consideration (array of IPv4 addrdess strings). + # exclude from consideration (array of IPv4 address strings). # def next_available_ip(num=1, exclude=[]) post_body = { num: num.to_i, exclude: exclude } JSON.parse(connection.post(resource_uri + "?_function=next_available_ip", post_body).body)["ips"] end end -end \ No newline at end of file +end