Project

General

Profile

Download (2.38 KB) Statistics
| Branch: | Tag: | Revision:
<%= text_f f, :name %>

<%= subnet_type_f f %>
<%= text_f f, :network %>
<%= text_f f, :cidr, :label => _("Network prefix"), :help_inline => _("Suffix or prefix length for this subnet, e.g. 32") %>
<%= text_f f, :mask, :help_inline => _("Netmask for this subnet"), :wrapper_class => "form-group #{'hide' unless f.object.show_mask?}" %>
<%= text_f f, :gateway, :help_inline => _("Optional: Gateway for this subnet") %>
<%= text_f f, :dns_primary, :help_inline => _("Optional: Primary DNS for this subnet") %>
<%= text_f f, :dns_secondary, :help_inline => _("Optional: Secondary DNS for this subnet") %>
<%= selectable_f f, :ipam, subnet_ipam_modes(f.object.type), {}, :data => {'disable-auto-suggest-on' => [IPAM::MODES[:none], IPAM::MODES[:eui64]]},
:label => _('IPAM'),
:label_help => _("You can select one of the IPAM modes supported by the selected IP protocol:<br/>" +
"<ul><li><strong>DHCP</strong> - will manage the IP on DHCP through assigned DHCP proxy, auto-suggested IPs come from DHCP <em>(IPv4)</em></li>" +
"<li><strong>Internal DB</strong> - use internal DB to auto-suggest free IP based on other interfaces on same subnet respecting range if specified, useful mainly with static boot mode <em>(IPv4, IPv6)</em></li>" +
"<li><strong>EUI-64</strong> - will assign the IPv6 address based on the MAC address of the interface <em>(IPv6)</em></li>" +
"<li><strong>None</strong> - leave IP management solely on user, no auto-suggestion <em>(IPv4, IPv6)</em></li></ul>").html_safe,
:label_help_options => { :title => _("IP Address Management"), :'data-placement' => 'top' }%>
<div id='ipam_options' class ='<%= f.object.ipam_needs_range? ? "" : "hide" %>'>
<%= text_f f, :from, :help_inline => _("Optional: Starting IP Address for IP auto suggestion") %>
<%= text_f f, :to, :help_inline => _("Optional: Ending IP Address for IP auto suggestion") %>
</div>
<%= number_f f, :vlanid, :min => 0, :max => 4095, :help_inline => _("Optional: VLAN ID for this subnet") %>
<%= selectable_f f, :boot_mode, Subnet.boot_modes_with_translations, {},
:help_inline => _("Default boot mode for interfaces assigned to this subnet, applied to hosts from provisioning templates") %>
<%= hidden_field_tag :redirect, params[:redirect] %>
(1-1/7)