From 652775d19532ce9bef7ec1383af959180e791c05 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 1 Nov 2011 06:24:06 +0000 Subject: [PATCH] create vm will ignore to create network device when vm.nics is null git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10947 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 3a83fb442..989d912d2 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -545,8 +545,6 @@ sub build_nicstruct { my @nics=(); if ($confdata->{vm}->{$node}->[0]->{nics}) { @nics = split /,/,$confdata->{vm}->{$node}->[0]->{nics}; - } else { - @nics = ('virbr0'); } my @macs=xCAT::VMCommon::getMacAddresses($confdata,$node,scalar @nics); my @rethashes; @@ -2046,8 +2044,6 @@ sub fixup_clone_network { my @nics; if ($confdata->{vm}->{$node}->[0]->{nics}) { #could still be empty if it came from master that way @nics = split /,/,$confdata->{vm}->{$node}->[0]->{nics}; - } else { - @nics = ('virbr0'); } my @nicsinmaster = $newnodexml->findnodes("/domain/devices/interface"); if (scalar @nicsinmaster > scalar @nics) { #we don't have enough places to attach nics to..