-Clear mac addresses when creating a master
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7295 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e018ef2e6b
commit
e51c984380
@ -1463,6 +1463,9 @@ sub clonevm {
|
||||
|
||||
$tmpnod = $parsedxml->findnodes('/domain/name/text()')->[0];
|
||||
$tmpnod->setData($mastername); #name the xml whatever the master name is to be
|
||||
foreach ($parsedxml->findnodes("/domain/devices/interface/mac")) { #clear all mac addresses
|
||||
if ($_->hasAttribute("address")) { $_->setAttribute("address"=>''); }
|
||||
}
|
||||
my $poolobj = get_storage_pool_by_url($directory);
|
||||
unless ($poolobj) {
|
||||
xCAT::SvrUtils::sendmsg([1,"Unable to reach $directory from hypervisor"], $callback,$node);
|
||||
|
Loading…
Reference in New Issue
Block a user