Class: Nic::Bootable

Inherits:
Managed show all
Defined in:
app/models/nic/bootable.rb

Instance Method Summary collapse

Methods inherited from Managed

#queue_with_host

Methods included from Orchestration::DNS

included

Methods included from Orchestration::DHCP

included

Methods included from Orchestration

included

Methods included from Foreman::STI

included, #save_with_type

Instance Method Details

#dhcp_recordObject


10
11
12
13
# File 'app/models/nic/bootable.rb', line 10

def dhcp_record
  return unless dhcp? or @dhcp_record
  @dhcp_record ||= host.jumpstart? ? Net::DHCP::SparcRecord.new(dhcp_attrs) : Net::DHCP::Record.new(dhcp_attrs)
end