Revision 43c4bd72
Added by Marek Hulán over 9 years ago
app/views/compute_resources_vms/form/_vmware.html.erb | ||
---|---|---|
<%= select_f f, :guest_id, compute_resource.guest_types, :first, :last, {}, { :label => _("Guest OS"), :class => "col-md-2", :disabled => !new_host } %>
|
||
<%= select_f f, :hardware_version, compute_resource.vm_hw_versions, :first, :last, {}, { :label => _("Virtual H/W version"), :class => "col-md-2", :disabled => !new_host } %>
|
||
|
||
<!--interfaces-->
|
||
<div class="children_fields">
|
||
<%= new_child_fields_template(f, :interfaces, {
|
||
:object => compute_resource.new_interface,
|
||
:partial => 'compute_resources_vms/form/vmware/network', :form_builder_attrs => { :compute_resource => compute_resource, :new => new_host } }) %>
|
||
<%= field_set_tag _("Network interfaces"), :id => "network_interfaces" do %>
|
||
<%= f.fields_for :interfaces do |i| %>
|
||
<%= render 'compute_resources_vms/form/vmware/network', :f => i, :compute_resource => compute_resource, :new => new_host %>
|
||
<% end %>
|
||
<% if new_host %>
|
||
<%= add_child_link '+ ' + _("Add Interface"), :interfaces, { :class => "info disable-unsupported", :title => _('add new network interface') } %>
|
||
<% end %>
|
||
<% end %>
|
||
</div>
|
||
|
||
<%= render :partial => 'compute_resources_vms/form/interfaces_legacy_message', :locals => { :is_compute_profile => local_assigns[:is_compute_profile] } %>
|
||
|
||
<!--Storage-->
|
||
<div class="children_fields">
|
Also available in: Unified diff
Fixes #7456 - Extract primary interface from host
Contributions from:All host must have at least one primary interface and one provision (can
be the same interface). Primary interface gives host a name so even
unamanaged host have primary interface (we skip validations of other
attributes for unamanged hosts though).
Host still have name attribute which is a cache of primary interface name.
Therefore we can use the host name in SQL queries, as a friendly_id etc.
- realm moved to the primary tab
- fqdn in nics table
- flags in nics table
- checkboxes for provision and primary flags
- modal resize fix
- original fields for primary NIC removed
- skipping validation for new resources
- warnings before switching flags and table update
- host name and primary interface name connected
- host domain name in the page title
- nics on host show page
- clearing modal window on cancel
- fixed domain validation in NIC::Base
- ip suggestion for all interfaces
- flags switchable from the overview table
- use icons instead of text for primary/provision on NICs overview tab
- attempt to fix sending NIC template
- fix fqdn algorithm
- ip addres in the overview table
- fix for class name collision
- better behavior of host name <-> primary name sync
- fix for subnet combobox values
- fix for modal poping up on form submission
- network partial for CRs moved from VM tab to modal
- fix ip suggestion race for ipam=db