mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-05 04:27:55 +00:00
16c88d8966
makeconfluentcfg gives confluent the console settings, the credentials of the hardware manager, the location and the enclosure of each node. It does not give the switch and the port that the node is cabled to, which confluent uses to find a node by the port it answers on. Read the switch table and give confluent net.switch and net.switchport. A node has one row in that table for each of its interfaces, thus keep every row and not the first one. A row that names an interface gives net.<interface>.switch and net.<interface>.switchport, so a node with more than one interface keeps the port of each. A row that names no interface gives the names without an interface. Read the table with the node list when the command receives a node range and read the whole table when it does not, as the command already does for the other tables. A cluster whose switch table is empty receives the configuration that it receives today. Recovered from the lenovobuild branch, where this arrived as one commit and two repairs of it: the first keeps one row for each node, which loses every interface but one, and reads the switch columns from the nodepos table in the branch that takes no node range, where that table has no such columns and the feature does nothing.