Project

General

Profile

« Previous | Next » 

Revision 8838eb42

Added by Ohad Levy over 11 years ago

  • ID 8838eb42a2a292f50126966d3fa768edad3a237a

fixes #1814 - converts sp_* attributes into a BMC interface class

this patch also includes the following

  • added a new interfaces table, and STI objects to represent a NIC, BMC, Managed
    and a bootable interface.
  • refactored DHCP/DNS orchestation code, so they can work on the
    interface objects and on the primary interface information that still
    reside in the hosts table.
  • added basic UI for interface selection

this refactor also helps to simply refactoring the host object into
multiple objects.

this patch also fixes
fixes #1325 - BMC NIC should also create DNS entry
fixes #1813 - allow to support multiple NIC per host

View differences:

app/controllers/hosts_controller.rb
@report_summary = Report.summarise(@range.days.ago, @host)
}
format.yaml { render :text => params["rundeck"].nil? ? @host.info.to_yaml : @host.rundeck.to_yaml }
format.json { render :json => @host.to_json({:methods => [:host_parameters]}) }
format.json { render :json => @host.to_json({:methods => [:host_parameters], :include => :interfaces }) }
end
end
......
if @domain.subnets.any?
page['#subnet_select'].html(render(:partial => 'common/domain', :locals => {:item => @host}))
page['#host_subnet_id'].val(@subnet.id).change if @subnet
page['#sp_subnet'].html(render(:partial => 'hosts/sp_subnet', :locals => {:item => @host}))
end
end
end

Also available in: Unified diff