Skip to content

Conversation

@bnaecker
Copy link
Collaborator

@bnaecker bnaecker commented Dec 4, 2025

  • Adds enum for tracking the external IP addresses for an instance or service, which includes the three fields that were previously separate: SNAT, ephemeral, and list of floating addresses.
  • Makes the previous source NAT config type IP address specific, with a "generic" variant for services. This is a bit lazy, but we can lift the IP version out of the contained IP address and into the source NAT type itself in the future if we need to.
  • Add new version of the sled-agent API with these new types, plus conversions with the previous version
  • Completely handle dual-stack OPTE ports, closes Enable dual-stack OPTE ports in the sled-agent #9247
  • Closes Guest external IP configuration needs to be dual-stack #9318

@bnaecker bnaecker marked this pull request as draft December 4, 2025 01:39
@bnaecker bnaecker force-pushed the dual-stack-external-addressing branch 5 times, most recently from 078e09b to 0000088 Compare December 4, 2025 04:59
Comment on lines +2377 to +2372
let mut seen_snat_ip = false;
let mut seen_ephemeral_ip = false;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to put this kind of validation into the builder, e.g., add checked methods that fail if the caller tries to overwrite existing values.

- Adds enum for tracking the external IP addresses for an instance or
  service, which includes the three fields that were previously
  separate: SNAT, ephemeral, and list of floating addresses.
- Makes the previous source NAT config type IP address specific, with a
  "generic" variant for services. This is a bit lazy, but we can lift
  the IP version out of the contained IP address and into the source NAT
  type itself in the future if we need to.
- Add new version of the sled-agent API with these new types, plus
  conversions with the previous version
- Completely handle dual-stack OPTE ports, closes #9247
- Closes #9318
@bnaecker bnaecker force-pushed the dual-stack-external-addressing branch from 0000088 to 4774e7f Compare December 4, 2025 18:12
@bnaecker bnaecker marked this pull request as ready for review December 4, 2025 18:31
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.

Guest external IP configuration needs to be dual-stack Enable dual-stack OPTE ports in the sled-agent

2 participants