mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-05 04:27:55 +00:00
f9ed90ec0b
A node can carry more than one BMC, and rspconfig already opens a session per BMC for rinv, reventlog, rvitals and rspconfig. A setting such as ip= carried a single value, so every BMC of the node received the same one. Two BMCs cannot share an address, so a node like that could not be configured through rspconfig at all. Read a comma separated value as one setting per BMC, in the order the sessions are numbered. Only the ip, netmask and gateway settings read a list, because a comma belongs to the value itself in a free form SNMP community string. A value without a comma still reaches every BMC, so the existing single BMC use is unchanged. An entry that is missing or empty reports the mismatch instead of reaching the address encoders, which reject an empty string. The session then holds the value of its own BMC, because the follow-up callbacks read the subcommand again to decide whether the address came from DHCP. Recovered from the lenovobuild branch.