feat: Add slot number and tray index for switch machine from RMS#807
feat: Add slot number and tray index for switch machine from RMS#807chet merged 1 commit intoNVIDIA:mainfrom
Conversation
🔐 TruffleHog Secret Scan✅ No secrets or credentials found! Your code has been scanned for 700+ types of secrets and credentials. All clear! 🎉 🕐 Last updated: 2026-04-03 20:37:17 UTC | Commit: 2248bb7 |
|
we should clarify what |
|
Core will not get these data via RMS only. In the long-term it will be via the component manager API interface so ANY plugins to Core could be able to provide such info. In the short-term, if it is not done this way, it will be by Core accessing NVOS and BMC directly as happened in endpoint exploration today for other similar info. |
ace0336 to
e9ca46a
Compare
1e451e0 to
3532604
Compare
3532604 to
b6a6462
Compare
| let machine_data = expected_machine.map(|em| &em.data); | ||
| let mut managed_host = ManagedHost::init(explored_host); | ||
|
|
||
| let bmc_credentials = if let Some(expected) = expected_machine |
There was a problem hiding this comment.
There's a lot of boilerplate here, e.g. in order to use the RMS client we need to look up the BMC credentials manually for each call at callsite.
It would be much nicer if it internally loads credentials just as the libredfish integration does.
749c12d to
e234db6
Compare
Signed-off-by: Vinod Chitrali <vchitrali@nvidia.com>
e234db6 to
1f20fbf
Compare
| <tr> | ||
| <th>Location</th> | ||
| <td>{{ location }}</td> | ||
| <th>Slot Number</th> |
There was a problem hiding this comment.
we can create a sub-template for this that renders things consistently across types. Similar to how @chet did it with metadata_details.html.
Added location field to Machine, Switch, PowerShelf, and Rack — dedicated VARCHAR(256) columns in DB tables
Site explorer wires location from config to entity from RMS
Description
Type of Change
Related Issues (Optional)
Breaking Changes
Testing
Additional Notes