mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Merge branch 'master' of git@github.com:webmin/webmin
This commit is contained in:
@@ -34,6 +34,11 @@ foreach my $f (glob("$netplan_dir/*.yaml")) {
|
||||
if (&is_true_value($dhcp)) {
|
||||
$cfg->{'dhcp'} = 1;
|
||||
}
|
||||
my ($dhcp6) = grep { $_->{'name'} eq 'dhcp6' }
|
||||
@{$e->{'members'}};
|
||||
if (&is_true_value($dhcp6)) {
|
||||
$cfg->{'dhcp6'} = 1;
|
||||
}
|
||||
|
||||
# Is optional at boot?
|
||||
my ($optional) = grep { $_->{'name'} eq 'optional' }
|
||||
@@ -163,6 +168,9 @@ else {
|
||||
push(@addrs, $iface->{'address'}."/".
|
||||
&mask_to_prefix($iface->{'netmask'}));
|
||||
}
|
||||
if ($iface->{'dhcp6'}) {
|
||||
push(@lines, $id." "."dhcp6: true");
|
||||
}
|
||||
for(my $i=0; $i<@{$iface->{'address6'}}; $i++) {
|
||||
push(@addrs, $iface->{'address6'}->[$i]."/".
|
||||
$iface->{'netmask6'}->[$i]);
|
||||
|
||||
Reference in New Issue
Block a user