Revision 0ef59e67
Added by Trey Dockendorf about 10 years ago
app/models/nic/managed.rb | ||
---|---|---|
@dhcp_record ||= Net::DHCP::Record.new(dhcp_attrs)
|
||
end
|
||
|
||
def hostname
|
||
unless domain.nil?
|
||
"#{name}.#{domain.name}"
|
||
else
|
||
name
|
||
end
|
||
end
|
||
|
||
protected
|
||
|
||
def uniq_fields_with_hosts
|
||
... | ... | |
def dhcp_attrs
|
||
raise ::Foreman::Exception.new(N_("DHCP not supported for this NIC")) unless dhcp?
|
||
{
|
||
:hostname => name,
|
||
:hostname => hostname,
|
||
:ip => ip,
|
||
:mac => mac,
|
||
:proxy => subnet.dhcp_proxy,
|
Also available in: Unified diff
fixes #4599 - DNS and DHCP records for BMC and managed interfaces not using FQDN
(cherry picked from commit 21e07e92ca2d0341a09de48fadfa95625f6d9f55)