2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00

makenetworks only ignore existed network entry. (#3928)

This commit is contained in:
Yuan Bai
2017-09-15 11:07:31 +08:00
committed by yangsong
parent 87ecb70b8a
commit c88fe766b4

View File

@ -551,7 +551,7 @@ sub donets
# 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;
next;
}
if (!$foundmatch) {
$nettab->setAttribs({ 'net' => $net, 'mask' => $mask }, { 'netname' => $netname, 'mgtifname' => $mgtifname, 'gateway' => $gw, 'mtu' => $mtu });