Method: Crowbar::Client::App::HostIP#allocate
- Defined in:
- lib/crowbar/client/app/host_ip.rb
#allocate(proposal, node, network, range, suggestion = nil) ⇒ Object
Host IP allocate command
It will try to allocate a host IP address for the specified node.
46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/crowbar/client/app/host_ip.rb', line 46 def allocate(proposal, node, network, range, suggestion = nil) Command::HostIP::Allocate.new( *command_params( proposal: proposal, node: node, network: network, range: range, suggestion: suggestion ) ).execute rescue => e catch_errors(e) end |