Attach a guest the way its own interface asks - #20
Merged
Merged
Conversation
A cell states a single attachment mode for every guest it runs. That is accurate while a cell runs one kind of guest, and wrong as soon as it runs two, because how a hypervisor learns about its device differs by guest. An interface that states its own attachment mode now decides for itself, and the cell-wide mode covers every interface that states none. The new HypervisorDeclared mode renders a tap attachment whose device is described to the hypervisor rather than discovered from the node, which the tap plugin reads from a single field in the attachment's CNI configuration. The field is omitted for every other attachment. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
scotwells
marked this pull request as ready for review
September 11, 2026 23:31
privateip
approved these changes
Sep 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A cell states one attachment mode for every guest it runs. That holds while a cell runs one kind of guest and breaks as soon as it runs two, because hypervisors differ in how they learn that their network device exists: some find it from the node, others have to be handed a description of it.
An interface that states its own attachment mode now decides how it is attached, and the cell-wide setting continues to cover every interface that states none. A guest asking to be handed its device gets a tap attachment whose description is written for its hypervisor to read; every other guest is attached exactly as before, byte for byte.
Nothing in any running cell changes until a workload asks for the new mode, and nothing asks for it yet. The cell-wide setting stays required and keeps working unchanged.
Depends on datum-cloud/network-services-operator#450, which defines the mode.
Testing
Unit suite and linters pass. The end-to-end suite could not run locally because the test cluster is unreachable from this machine, which reproduces on unmodified main.
🤖 Generated with Claude Code