Class: Infoblox::Network

Inherits:
Resource show all
Defined in:
lib/infoblox/network.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#_ref

Instance Method Summary collapse

Methods inherited from Resource

all, connection, connection=, #create, #delete, find, #get, #initialize, remote_attr_accessor, #remote_attribute_hash, remote_attrs, resource_uri, #resource_uri, wapi_object

Constructor Details

This class inherits a constructor from Infoblox::Resource

Instance Attribute Details

#network_viewObject

Returns the value of attribute network_view.



4
5
6
# File 'lib/infoblox/network.rb', line 4

def network_view
  @network_view
end

Instance Method Details

#next_available_ip(num = 1) ⇒ Object



8
9
10
# File 'lib/infoblox/network.rb', line 8

def next_available_ip(num=1)
  JSON.parse(connection.post(resource_uri + "?_function=next_available_ip&num=#{num}", {}).body)["ips"]
end