mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-02 19:40:10 +00:00
fix CI failure
This commit is contained in:
parent
7afbaaded1
commit
6e16bd9f27
@ -507,7 +507,6 @@ sub donets
|
||||
# check if this netname is already defined
|
||||
if ( $netname eq $netn ) {
|
||||
$netnamematch = 1;
|
||||
$callback->({ warning => "The network entry \'$netname\' already exists in xCAT networks table. Cannot create a definition for \'$netname\'" });
|
||||
last;
|
||||
}
|
||||
# split definition mask
|
||||
@ -524,10 +523,6 @@ sub donets
|
||||
}
|
||||
}
|
||||
|
||||
# if this net entry exists, go to next line in networks table
|
||||
if ($netnamematch) {
|
||||
last;
|
||||
}
|
||||
# get mtu value
|
||||
my $mtu;
|
||||
my @rowm;
|
||||
@ -553,6 +548,11 @@ sub donets
|
||||
push @{ $rsp->{data} }, " mtu=$mtu";
|
||||
}
|
||||
} else {
|
||||
# if this net entry exists, go to next line in networks table
|
||||
if ($netnamematch) {
|
||||
$callback->({ warning => "The network entry \'$netname\' already exists in xCAT networks table. Cannot create a definition for \'$netname\'" });
|
||||
last;
|
||||
}
|
||||
if (!$foundmatch) {
|
||||
$nettab->setAttribs({ 'net' => $net, 'mask' => $mask }, { 'netname' => $netname, 'mgtifname' => $mgtifname, 'gateway' => $gw, 'mtu' => $mtu });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user