Project

General

Profile

« Previous | Next » 

Revision 017a7d84

Added by Ohad Levy almost 12 years ago

  • ID 017a7d84fd3e580fd97c366b9bf95624b4d0871c

fixes #1765 - changing a conflicting IP address might lead to losing DNS or DHCP records

View differences:

app/models/orchestration/dhcp.rb
logger.debug("Detected a changed required for DHCP record")
queue.create(:name => "Remove DHCP Settings for #{old}", :priority => 5,
:action => [old, :del_dhcp]) if old.dhcp?
queue.create(:name => "Create DHCP Settings for #{self}", :priority => 10,
queue.create(:name => "Create DHCP Settings for #{self}", :priority => 9,
:action => [self, :set_dhcp]) if dhcp?
end
......
logger.debug("Detected a changed required for BMC DHCP record")
queue.create(:name => "Remove DHCP Settings for #{old.sp_name}", :priority => 5,
:action => [old, :del_sp_dhcp]) if old.sp_dhcp?
queue.create(:name => "Create DHCP Settings for #{sp_name}", :priority => 15,
queue.create(:name => "Create DHCP Settings for #{sp_name}", :priority => 14,
:action => [self, :set_sp_dhcp]) if sp_dhcp?
end
end

Also available in: Unified diff