fix(nmxc-browser): resolve NMX-C endpoint by rack ID as well. - #4652
Conversation
Add rack_id as an alternative to chassis_serial in NmxcBrowseRequest. When rack_id is provided the endpoint is resolved from the rack's ready control-plane switch NVOS IP via resolve_nmx_c_endpoint_url. Signed-off-by: Roopesh Tamma <rtamma@nvidia.com>
Signed-off-by: Roopesh Tamma <rtamma@nvidia.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
Summary by CodeRabbit
WalkthroughNMX-C browsing now accepts either a chassis serial or rack ID. CLI and web requests validate the selectors, RPC contracts carry the rack ID, and the core handler resolves rack endpoints through the ready control-plane switch. ChangesNMX-C rack endpoint selection
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant Browser as NMX-C browser
participant ApiWeb as api-web
participant Request as NmxcBrowseRequest
participant ApiCore as api-core
participant Database
Browser->>ApiWeb: Submit chassis serial or rack ID
ApiWeb->>Request: Build validated browse request
Request->>ApiCore: Send endpoint selector
ApiCore->>Database: Resolve NMX-C endpoint
Database-->>ApiCore: Return endpoint URL
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
🔐 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-08-06 05:55:51 UTC | Commit: 56c125e |
Currently, NMX-C browser expects chassis_serial->nmx_c_endpoint mapping to be available in nvlink_nmx_c_endpoint table. In sites where there are ingested racks, nmx_c_endpoint table is not required to be populated.
Add rack_id as an alternative to chassis_serial in NmxcBrowseRequest. When rack_id is provided the endpoint is resolved from the rack's ready control-plane switch NVOS IP via resolve_nmx_c_endpoint_url, removing the requirement for a nvlink_nmxc_endpoints row.
Related issues
#4474
Type of Change
Breaking Changes
Testing
Additional Notes