Skip to content

Support IPv6 addresses in the OPTE zone setup service - #11092

Draft
bnaecker wants to merge 1 commit into
mainfrom
ben/opte-setup-for-ipv6
Draft

Support IPv6 addresses in the OPTE zone setup service#11092
bnaecker wants to merge 1 commit into
mainfrom
ben/opte-setup-for-ipv6

Conversation

@bnaecker

Copy link
Copy Markdown
Collaborator
  • Add the new --create-v6 parameter to the zone-setup binary for setting up OPTE ports in a service zone. Also adds stronger types around IPv4 addresses for the gateway / private IP arguments. Includes a number of tests for those types, and all combinations of arguments we could provide.
  • Ensure we create both IPv4 and IPv6 DHCP address objects in the current zone, depending on how the SMF properties are set. These properties are now set in the sled-agent for both IPv4 and IPv6.
  • Move the code from the RunningZone which does the route(8) shenanigans to work around stlouis#326 (setting up a default route to the OPTE virtual gateway), and which also waits for the DHCPv6 address on the link. This was all duplicated, and moving it here means we can delete the workaround in one place in the future.

- Add the new `--create-v6` parameter to the `zone-setup` binary for
  setting up OPTE ports in a service zone. Also adds stronger types
  around IPv4 addresses for the gateway / private IP arguments. Includes
  a number of tests for those types, and all combinations of arguments
  we could provide.
- Ensure we create both IPv4 and IPv6 DHCP address objects in the
  current zone, depending on how the SMF properties are set. These
  properties are now set in the sled-agent for both IPv4 and IPv6.
- Move the code from the `RunningZone` which does the `route(8)`
  shenanigans to work around stlouis#326 (setting up a default route to
  the OPTE virtual gateway), and which also waits for the DHCPv6
  address on the link. This was all duplicated, and moving it here means
  we can delete the workaround in one place in the future.
@bnaecker
bnaecker marked this pull request as draft August 14, 2026 21:56
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.

1 participant