3 # Edit or create an IP range bootup interface
5 require './net-lib.pl';
6 $access{'ifcs'} == 2 || $access{'ifcs'} == 3 || &error($text{'ifcs_ecannot'});
9 &ui_print_header(undef, $text{'range_create'}, "");
12 @boot = &boot_interfaces();
13 $b = $boot[$in{'idx'}];
15 if ($access{'ifcs'} == 3) {
16 map { $can_interfaces{$_}++ } split(/\s+/, $access{'interfaces'});
17 if (! $can_interfaces{$b->{'fullname'}}) {
18 &error($text{'ifcs_ecannot_this'});
22 &ui_print_header(undef, $text{'range_edit'}, "");
26 print &ui_form_start("save_range.cgi");
27 print &ui_hidden("new", $in{'new'});
28 print &ui_hidden("idx", $in{'idx'});
29 print &ui_table_start($text{'range_header'}, undef, 2);
31 # OS-specific range input
35 print &ui_table_end();
37 print &ui_form_end([ [ undef, $text{'create'} ],
38 [ 'activate', $text{'bifc_capply'} ] ]);
42 !$always_apply_ifcs ? ( [ undef, $text{'save'} ] ) : ( ),
43 defined(&apply_interface) ?
44 ( [ 'activate', $text{'bifc_apply'} ] ) : ( ),
45 defined(&unapply_interface) ?
46 ( [ 'unapply', $text{'bifc_dapply'} ] ) : ( ),
47 !$noos_support_delete_ifcs ?
48 ( [ 'delete', $text{'delete'} ] ) : ( ),
52 &ui_print_footer("list_ifcs.cgi?mode=boot", $text{'ifcs_return'});