Skip to content

fix(linode): keep instance ipv6 addresses - #790

Merged
Mzack9999 merged 1 commit into
devfrom
fix/789-linode-ipv6
Oct 8, 2026
Merged

Mzack9999 merged 1 commit into
devfrom
fix/789-linode-ipv6

Conversation

@dogancanbakir

@dogancanbakir dogancanbakir commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Fixes #789

Strips the prefix length the API appends to ipv6, so instance IPv6 addresses are no longer rejected by the validator. Test uses the documented response format against a fake API.

Summary by CodeRabbit

  • Bug Fixes
    • Linode instance IPv6 addresses are now displayed without the prefix-length suffix (for example, /128).

@dogancanbakir dogancanbakir self-assigned this Oct 8, 2026
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: c908cbfd-63cd-4730-b997-baf78174737e
📥 Commits

Reviewing files that changed from the base of the PR and between f49f78d and e8529b0.

📒 Files selected for processing (2)
  • pkg/providers/linode/instances.go
  • pkg/providers/linode/instances_test.go

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.


Walkthrough

The Linode instance provider removes the prefix-length suffix from IPv6 addresses before setting PublicIPv6. A test checks an address with a /128 suffix.

Changes

Linode IPv6 Address Handling

Layer / File(s) Summary
Normalize instance IPv6 addresses
pkg/providers/linode/instances.go, pkg/providers/linode/instances_test.go
The provider strips the prefix-length suffix from instance IPv6 addresses. The test checks that PublicIPv6 contains the address without /128.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to e8529

Linode instance IPv6 addresses are now returned without the prefix length, so they pass validation and appear in output. No merge-blocking risk was found.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: preserving Linode instance IPv6 addresses by removing the API-provided prefix length.
Linked Issues check ✅ Passed Issue #789 requires the Linode instance IPv6 value to be usable in output when the API includes a prefix length. pkg/providers/linode/instances.go now removes the suffix after / before assigning `…
Out of Scope Changes check ✅ Passed The pull request changes only Linode instance IPv6 normalization and its focused automated test. Both changes support issue #789. No unrelated behavior is changed.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit found an IPv6 trail,
Its /128 suffix lost its tail.
The address now comes through,
A test confirms it too.
Hop, hop, the fields are clear!

Comment @coderabbitai help to get the list of available commands.

@Mzack9999
Mzack9999 merged commit 2e1fec6 into dev Oct 8, 2026
9 checks passed
@Mzack9999
Mzack9999 deleted the fix/789-linode-ipv6 branch October 8, 2026 19:12
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.

[issue] linode: instance IPv6 addresses are dropped

2 participants