Revision e60f0799
Added by Dominic Cleal about 9 years ago
lib/net/dhcp/record.rb | ||
---|---|---|
# Create a DHCP entry
|
||
def create
|
||
logger.info "Create DHCP reservation for #{self}"
|
||
logger.debug "DHCP reservation on net #{network} with attrs: #{attrs.inspect}"
|
||
begin
|
||
raise "Must define a hostname" if hostname.blank?
|
||
proxy.set network, attrs
|
Also available in: Unified diff
fixes #10020 - add next-server/filename attrs to provision NIC DHCP record
A host's DHCP record used to be constructed with PXE attributes in
Orchestration::DHCP, but moved to Nic::Managed during 43c4bd7. Nic::Managed
didn't add PXE attributes, so this commit adds these when provision? is set.
Nic::Bootable could add PXE attributes but was unused, so it is now deprecated.
PXE bootable interfaces should be of type Nic::Managed with provision: true.