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:
@ -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 });
|
||||
|
Reference in New Issue
Block a user