Skip to content

fix(api-db): use inet cast instead of bigint for IPv4 resource pool min/max#584

Open
chet wants to merge 1 commit intoNVIDIA:mainfrom
chet:bug_5986950
Open

fix(api-db): use inet cast instead of bigint for IPv4 resource pool min/max#584
chet wants to merge 1 commit intoNVIDIA:mainfrom
chet:bug_5986950

Conversation

@chet
Copy link
Contributor

@chet chet commented Mar 17, 2026

Description

This addresses #583.

It looks like the bug was introduced in #224.

The PREVIOUS code correctly used inet for the IPv4 query. When #224 rewrote the all() function to add auto-assign support, both the query_int and query_ipv4 subqueries were written with value::bigint. I think it was just a copy/paste and IPv4 was supposed to stay ::inet.

Test added. We had/have tests for the IPv6 side, but not IPv4.

Signed-off-by: Chet Nichols III chetn@nvidia.com

Type of Change

  • Add - New feature or capability
  • Change - Changes in existing functionality
  • Fix - Bug fixes
  • Remove - Removed features or deprecated functionality
  • Internal - Internal changes (refactoring, tests, docs, etc.)

Related Issues (Optional)

Breaking Changes

  • This PR contains breaking changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • No testing required (docs, internal refactor, etc.)

Additional Notes

@chet chet requested a review from a team as a code owner March 17, 2026 00:21
@github-actions
Copy link

🔐 TruffleHog Secret Scan

No secrets or credentials found!

Your code has been scanned for 700+ types of secrets and credentials. All clear! 🎉

🔗 View scan details

🕐 Last updated: 2026-03-17 00:23:25 UTC | Commit: 0761ded

@github-actions
Copy link

🛡️ Vulnerability Scan

🚨 Found 72 vulnerability(ies)
📊 vs main: 72 (no change)

Severity Breakdown:

  • 🔴 Critical/High: 72
  • 🟡 Medium: 0
  • 🔵 Low/Info: 0

🔗 View full details in Security tab

🕐 Last updated: 2026-03-17 00:23:31 UTC | Commit: 0761ded

@chet chet force-pushed the bug_5986950 branch 2 times, most recently from a73b5f9 to 820163a Compare March 17, 2026 00:25
…in/max

This addresses NVIDIA#583.

It looks like the bug was introduced in NVIDIA#224.

The PREVIOUS code correctly used inet for the IPv4 query. When NVIDIA#224 rewrote the all() function to add auto-assign support, both the query_int and query_ipv4 subqueries were written with value::bigint. I think it was just a copy/paste and IPv4 was supposed to stay ::inet.

Signed-off-by: Chet Nichols III <chetn@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants