Skip to content

Add sled-agent API for managing attached subnets#9778

Merged
bnaecker merged 7 commits intomainfrom
sled-agent-attached-subnet-api
Feb 4, 2026
Merged

Add sled-agent API for managing attached subnets#9778
bnaecker merged 7 commits intomainfrom
sled-agent-attached-subnet-api

Conversation

@bnaecker
Copy link
Collaborator

@bnaecker bnaecker commented Feb 3, 2026

  • Add APIs to the sled agent for attaching and detaching either a single subnet on an instance, or setting / clearing the entire set for an instance.
  • Add list of attached subnets in the instance-creation request body, and fill that in from Nexus with the (currently-empty) set of attached subnets for the target instnace.
  • Plumb attachment requests all the way through the sled-agent internals to the new APIs in OPTE.
  • Add mapping of attached subnets per-instance to the simulated sled agent for testing.
  • Fixes Add sled-agent API for attached external subnets #9702

- Add APIs to the sled agent for attaching and detaching either a single
  subnet on an instance, or setting / clearing the entire set for an
  instance.
- Add list of attached subnets in the instance-creation request body,
  and fill that in from Nexus with the (currently-empty) set of attached
  subnets for the target instnace.
- Plumb attachment requests all the way through the sled-agent internals
  to the new APIs in OPTE.
- Add mapping of attached subnets per-instance to the simulated sled
  agent for testing.
- Fixes #9702
Copy link
Contributor

@FelixMcFelix FelixMcFelix left a comment

Choose a reason for hiding this comment

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

Thanks for this Ben, the impl makes sense to me reading through. Just some nits in addition to the existing comments.

- Update instance's view of attached subnets based on what actually gets
  applied in OPTE.
- Enum to describe attached subnet kind, instead of boolean.
- Inline error chain, contains_key over get, and a few other minor fixes
@bnaecker bnaecker merged commit 16c22eb into main Feb 4, 2026
17 checks passed
@bnaecker bnaecker deleted the sled-agent-attached-subnet-api branch February 4, 2026 17:24
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.

Add sled-agent API for attached external subnets

4 participants