Skip to content

fix(netplan): do not enable DHCPv6 for ipv6_slaac subnets - #7153

Closed
LubabaKhalid wants to merge 1 commit into
canonical:mainfrom
LubabaKhalid:fix/netplan-ipv6-slaac
Closed

LubabaKhalid wants to merge 1 commit into
canonical:mainfrom
LubabaKhalid:fix/netplan-ipv6-slaac

Conversation

@LubabaKhalid

Copy link
Copy Markdown

Proposed Commit Message

fix(netplan): do not enable DHCPv6 for ipv6_slaac subnets

The netplan renderer handled ipv6_slaac like the DHCPv6 subnet types
and rendered dhcp6: true, so interfaces configured for SLAAC also
requested a DHCPv6 address. The eni, sysconfig and NetworkManager
renderers already treat ipv6_slaac as router advertisements only.

Render accept-ra: true for ipv6_slaac subnets instead of dhcp6: true.

Fixes GH-6847

Issues:

Fixes #6847

Test Steps

pytest tests/unittests/net/test_netplan.py tests/unittests/test_net.py -k slaac

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

The netplan renderer handled ipv6_slaac like the DHCPv6 subnet types
and rendered dhcp6: true, so interfaces configured for SLAAC also
requested a DHCPv6 address. The eni, sysconfig and NetworkManager
renderers already treat ipv6_slaac as router advertisements only.

Render accept-ra: true for ipv6_slaac subnets instead of dhcp6: true.

Fixes canonicalGH-6847
@LubabaKhalid

Copy link
Copy Markdown
Author

@holmanb @blackboxsw Could you please review this when you have a moment? It fixes the netplan renderer enabling DHCPv6 for ipv6_slaac subnets, so it now matches the eni, sysconfig and NetworkManager renderers. Thanks!

@LubabaKhalid

Copy link
Copy Markdown
Author

@wak327 Could you review this PR if possible?

@github-actions

Copy link
Copy Markdown

Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close.

If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging blackboxsw, and he will ensure that someone takes a look soon.

(If the pull request is closed and you would like to continue working on it, please do tag blackboxsw to reopen it.)

@github-actions github-actions Bot added the stale-pr Pull request is stale; will be auto-closed soon label Oct 29, 2026
@github-actions github-actions Bot closed this Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale-pr Pull request is stale; will be auto-closed soon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Netplan renderer incorrectly mixes DHCPv6 and SLAAC

1 participant