When auto-selecting a nic appropriate for vmotion, ignore IMM interface when present
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10510 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0649fd9d53
commit
891eab7f59
@ -1251,7 +1251,8 @@ sub enable_vmotion {
|
||||
if ($qnc->{selectedVnic}) {
|
||||
return 1;
|
||||
} else {
|
||||
if (scalar @{$qnc->candidateVnic} eq 1) { #There is only one possible path, use it
|
||||
my $vniccount=scalar @{$qnc->candidateVnic};
|
||||
if ($vniccount==1 or ($vniccount==2 and $qnc->candidateVnic->[1]->spec->ip->ipAddress =~ /^169.254/)) { #There is only one possible path, use it
|
||||
$nicmgr->SelectVnicForNicType(nicType=>"vmotion",device=>$qnc->candidateVnic->[0]->device);
|
||||
return 1;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user