Method: CORL::Plugin::Network#node_by_ip

Defined in:
lib/core/plugin/network.rb

#node_by_ip(public_ip, require_new = false) ⇒ Object




186
187
188
189
190
191
# File 'lib/core/plugin/network.rb', line 186

def node_by_ip(public_ip, require_new = false)
  each_node_config do |provider, name, info|
    return node(provider, name, require_new) if info[:public_ip] == public_ip  
  end
  nil
end