From c88fe766b4da1a7e41e8e4926396c50e2868643e Mon Sep 17 00:00:00 2001 From: Yuan Bai Date: Fri, 15 Sep 2017 11:07:31 +0800 Subject: [PATCH] makenetworks only ignore existed network entry. (#3928) --- xCAT-server/lib/xcat/plugins/networks.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/networks.pm b/xCAT-server/lib/xcat/plugins/networks.pm index d4db7d8a4..6a05726b0 100644 --- a/xCAT-server/lib/xcat/plugins/networks.pm +++ b/xCAT-server/lib/xcat/plugins/networks.pm @@ -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 });