2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-20 10:10:22 +00:00

Merge pull request #2375 from immarvin/oncumulus

fix issue https://github.com/xcat2/xcat-core/issues/2371
This commit is contained in:
tingtli
2017-01-06 13:13:29 +08:00
committed by GitHub

View File

@@ -73,7 +73,7 @@ if ($::SWITCH) {
my $switchestab = xCAT::Table->new('switches');
my $switches_hash = $switchestab->getNodesAttribs(\@filternodes,['switchtype']);
foreach my $fsw (@filternodes) {
if (($switches_hash->{$fsw}->[0]->{switchtype}) =~ /cumulus/) {
if (($switches_hash->{$fsw}->[0]->{switchtype}) =~ /onie/) {
push @nodes, $fsw;
} else {
xCAT::MsgUtils->message("E","The $fsw is not cumulus switch, will not config");