Sha256: cad38fd02fe4085da17e79e8103b561050d7483a21c14435b0d0b53c887fb8f4
Contents?: true
Size: 769 Bytes
Versions: 17
Compression:
Stored size: 769 Bytes
Contents
module Infoblox class Network < Resource remote_attr_accessor :network, :extensible_attributes 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 addrdess 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
17 entries across 17 versions & 1 rubygems