Skip to content

Add first-class virtual network resources #104

Description

@halfcyan

Summary

Move from string-only net:// references toward explicit virtual network resources and VM attachments.

Scope

  • Define network identity, subnet, bridge mode, and ownership.
  • Resolve network attachments into TAP/bridge configuration.
  • Preserve existing net:// compatibility during migration.
  • Add lifecycle operations or internal resource handlers.
  • No compatibility layer for unreleased Odorobo network references is required.

Tasks

  • Define the virtual network resource and VM attachment data model.
  • Add network identity, subnet, bridge mode, and ownership fields.
  • Implement resolution of named networks into TAP and bridge configuration.
  • Define the new network reference format and update all in-development callers to use it.
  • Add lifecycle operations or internal handlers for network resources.
  • Define network teardown and ownership checks.
  • Add tests for resource creation, attachment, compatibility, and cleanup.
  • Document the network resource and attachment contract.

What this should do

  • A VM can refer to a named virtual network.
  • The agent creates or verifies the required host-side resources.
  • Network ownership and teardown are explicit.
  • All in-development Odorobo VM and networking code uses the new network resource contract.

Dependencies

  • Depends on draft issue 01.

Related issues

Issue links

  • Depends on #98.
  • Related to existing #16.
  • Enables #105.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions