fix: IPv4 CIDRPool gatewayIndex does not match leaf gateway address - #196
Conversation
Greptile SummaryThe PR corrects the Spectrum-X IPv4 CIDRPool gateway offset so it points to the leaf address and updates the affected expectations.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (2): Last reviewed commit: "fix: IPv4 CIDRPool gatewayIndex does not..." | Re-trigger Greptile |
| } | ||
| return cidrPoolSettings{ | ||
| gatewayIndex: 0, | ||
| gatewayIndex: 1, |
There was a problem hiding this comment.
IPv4 test expectations remain stale
When the Spectrum-X package tests run, BuildCIDRPools propagates the new gateway index of 1 while three existing IPv4 tests still require 0, causing the test suite to fail. Update those expectations alongside this behavior change.
Knowledge Base Used: Spectrum-X addressing and topology
Signed-off-by: andrewwhitecdw <andrewwhitecdw@users.noreply.github.com>
0ca6401 to
7b116ba
Compare
|
@greptile-apps Thanks for the review. I updated the stale IPv4 |
|
The updates look correct. All three |
This PR addresses the following issue in
pkg/networkoperatorplugin/spectrumx/addressing.go: IPv4 CIDRPool gatewayIndex does not match leaf gateway address.Changes
pkg/networkoperatorplugin/spectrumx/addressing.go: IPv4 CIDRPool gatewayIndex does not match leaf gateway address.Details
Tests
pkg/networkoperatorplugin/spectrumx/addressing_test.goContributor guidelines
Per this repo's CONTRIBUTING.md:
Signed-off-bytrailer, DCO).Update (post-Greptile review): The existing IPv4
BuildCIDRPoolstest expectations have been updated toGatewayIndex: 1to match the implementation change. The Spectrum-X addressing test suite now passes (go test ./pkg/networkoperatorplugin/spectrumx/...). Commit:7b116ba14dbdeee1a457db743c2c4ce66e473b6b.