Sha256: 1fa08fddada650d9efa633c74bae33ae769744fda23e77262af3d81124c69a1f
Contents?: true
Size: 831 Bytes
Versions: 3
Compression:
Stored size: 831 Bytes
Contents
module Infoblox class Network < Resource remote_attr_accessor :extattrs, :extensible_attributes, :network remote_post_accessor :auto_create_reversezone attr_accessor :network_view, :network_container wapi_object "network" ## # Invoke the same-named function on the network 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 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
infoblox-0.3.2 | lib/infoblox/resource/network.rb |
infoblox-0.3.1 | lib/infoblox/resource/network.rb |
infoblox-0.3.0 | lib/infoblox/resource/network.rb |