\n"; } # Show form to add print &ui_form_start("add_iface.cgi", "post"); print &ui_table_start($text{'ifaces_header'}, undef, 2); # Interface name print &ui_table_row($text{'ifaces_name'}, &ui_textbox("name", undef, 40)); # Transport type print &ui_table_row($text{'ifaces_transport'}, &ui_select("transport", "tcp", [ [ "tcp", "TCP" ], [ "iser", "ISER" ], [ "cxgb3i", "Chelsio CXGB3I" ], [ "bnx2i", "Broadcom BNX2I" ], [ "be2iscsi", "ServerEngines BE2ISCSI" ] ])); # Source IP address print &ui_table_row($text{'ifaces_ipaddress'}, &ui_opt_textbox("ipaddress", undef, 20, $text{'ifaces_ipaddressdef'})); # MAC address print &ui_table_row($text{'ifaces_hwaddress'}, &ui_opt_textbox("hwaddress", undef, 30, $text{'ifaces_ipaddressdef'})); # Source interface my @active; if (&foreign_check("net")) { &foreign_require("net"); @active = grep { $_->{'name'} ne 'lo' } &net::active_interfaces(); } if (@active) { print &ui_table_row($text{'ifaces_ifacename'}, &ui_select("ifacename", undef, [ [ '', "<$text{'ifaces_ipaddressdef'}>" ], map { $_->{'fullname'} } grep { $_->{'virtual'} eq '' } @active ])); } print &ui_table_end(); print &ui_form_end([ [ undef, $text{'create'} ] ]); &ui_print_footer("", $text{'index_return'});