Module: Dcmgr::Models::Network::IpLeaseMethods

Defined in:
lib/dcmgr/models/network.rb

Instance Method Summary collapse

Instance Method Details

#add_reserved(ipaddr, description = nil) ⇒ Object



11
12
13
14
15
16
# File 'lib/dcmgr/models/network.rb', line 11

def add_reserved(ipaddr, description=nil)
  model.create(:network_id=>model_object.id,
               :ipv4=>ipaddr,
               :alloc_type=>IpLease::TYPE_RESERVED,
               :description=>description)
end