Change flexdiscover to separate imm and cmm search
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16664 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
5849169891
commit
8dba31f059
@ -539,9 +539,16 @@ sub invoke_dodiscover {
|
||||
|
||||
|
||||
my %arg;
|
||||
if ($globalopt{flexdiscover}) {
|
||||
$arg{SrvTypes} = [ qw/service:management-hardware.IBM:chassis-management-module service:management-hardware.IBM:management-module service:management-hardware.IBM:integrated-management-module2/ ];
|
||||
if ($globalopt{flexdiscover}) { #we do two SLP passes, one to hopefully catch the less numerous management modules reliably, a separate one to best-effort catch imms
|
||||
$arg{SrvTypes} = [ qw/service:management-hardware.IBM:chassis-management-module service:management-hardware.IBM:management-module/ ];
|
||||
my ($searchmacsref,$sendcount,$rsp) = xCAT::SLP::dodiscover(SrvTypes=>$arg{SrvTypes},Callback=>\&bt_handle_new_slp_entity);
|
||||
$arg{SrvTypes} = [ qw/service:management-hardware.IBM:integrated-management-module2/ ];
|
||||
my ($newsearchmacsref,$newsendcount,$newrsp) = xCAT::SLP::dodiscover(SrvTypes=>$arg{SrvTypes},Callback=>\&bt_handle_new_slp_entity);
|
||||
foreach (keys %$newsearchmacsref) {
|
||||
$searchmacsref{$_}=$newsearchmacsref->{$_};
|
||||
}
|
||||
$sendcount += $newsendcount;
|
||||
$rsp+=$newrsp;
|
||||
return ($searchmacsref,$sendcount,$rsp);
|
||||
}
|
||||
$arg{SrvTypes} = $services;
|
||||
|
Loading…
Reference in New Issue
Block a user