2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-05 17:58:14 +00:00

Fix makeconfluentcfg without arguments

There were mistakes in the switch table processing attempt
for non noderange makeconfluentcfg.
This commit is contained in:
Jarrod Johnson
2017-11-09 09:27:53 -05:00
parent 9de9193d0c
commit 0f45f2e517

View File

@@ -276,7 +276,12 @@ sub makeconfluentcfg {
@cfgents1 = $hmtab->getAllNodeAttribs([ 'cons', 'serialport', 'mgt', 'conserver', 'termserver', 'termport', 'consoleondemand' ]);
@cfgents2 = $nodepostab->getAllNodeAttribs([ 'rack', 'u', 'chassis', 'slot', 'room' ]);
@cfgents3 = $nodepostab->getAllNodeAttribs([ 'mpa', 'id' ]);
@cfgents4 = $nodepostab->getAllNodeAttribs([ 'node', 'switch', 'port', 'interface' ]);
@cfgents4 = $switchtab->getAllNodeAttribs([ 'node', 'switch', 'port', 'interface' ]);
my @switchnodes;
foreach my $ent (@cfgents4) {
if ($ent->{node}) { push @switchnodes, $ent->{node} }
}
@cfgents4 = $switchtab->getNodesAttribs(\@switchnodes, [ 'node', 'switch', 'port', 'interface' ]);
}