}
$table6 .= &ui_columns_end();
print &ui_table_row($text{'ifcs_mode6'},
- &ui_radio_table("mode6", $b->{'auto6'} ? "auto" : "address",
- [ [ "auto", $text{'ifcs_auto6'} ],
- [ "address", $text{'ifcs_static2'}, $table6 ] ]));
+ &ui_radio_table("mode6",
+ $b->{'auto6'} ? "auto" :
+ @{$b->{'address6'}} ? "address" : "none",
+ [ [ "none", $text{'ifcs_none6'} ],
+ [ "auto", $text{'ifcs_auto6'} ],
+ [ "address", $text{'ifcs_static2'}, $table6 ] ]), 2);
}
# MTU
ifcs_address6=IPv6 address
ifcs_netmask6=Netmask
ifcs_mode6a=IPv6 addresses
+ifcs_none6=IPv6 disabled
aifc_create=Create Active Interface
aifc_edit=Edit Active Interface
$b->{'address6'} = \@address6;
$b->{'netmask6'} = \@netmask6;
}
+ elsif (&supports_address6($b) && $in{'mode6'} eq 'none') {
+ # IPv6 disabled
+ delete($b->{'address6'});
+ delete($b->{'netmask6'});
+ delete($b->{'auto6'});
+ }
# Save bonding settings
if ($in{'bond'}) {