Module: Radfish::Core::Network

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

Instance Method Summary collapse

Instance Method Details

#get_bmc_networkObject

Raises:

  • (NotImplementedError)


6
7
8
# File 'lib/radfish/core/network.rb', line 6

def get_bmc_network
  raise NotImplementedError, "Adapter must implement #get_bmc_network"
end

#set_bmc_dhcpObject



16
17
18
19
# File 'lib/radfish/core/network.rb', line 16

def set_bmc_dhcp
  # Convenience method that calls set_bmc_network with dhcp: true
  set_bmc_network(dhcp: true)
end

#set_bmc_network(ip_address: nil, subnet_mask: nil, gateway: nil, dns_primary: nil, dns_secondary: nil, hostname: nil, dhcp: false) ⇒ Object

Raises:

  • (NotImplementedError)


10
11
12
13
14
# File 'lib/radfish/core/network.rb', line 10

def set_bmc_network(ip_address: nil, subnet_mask: nil, gateway: nil, 
                    dns_primary: nil, dns_secondary: nil, hostname: nil, 
                    dhcp: false)
  raise NotImplementedError, "Adapter must implement #set_bmc_network"
end