Project

General

Profile

« Previous | Next » 

Revision f825cdf6

Added by Dominic Cleal about 9 years ago

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.

(cherry picked from commit e60f079920e6b370cfb3b2b047896fcbd4794a3c)

Conflicts:
app/models/nic/bootable.rb

View differences:

test/factories/operatingsystem.rb
type 'Suse'
title 'OpenSuse 11.4'
end
factory :solaris, class: Solaris do
sequence(:name) { 'Solaris' }
major '10'
minor '8'
type 'Solaris'
title 'Solaris 10.8'
end
end
end

Also available in: Unified diff