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.

Parameters:

  • proposal (String)

    the proposal name

  • node (String)

    the node name or alias

  • network (String)

    the network name

  • range (String)

    the network range

  • suggestion (String) (defaults to: nil)

    an optional suggestion



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