8000 vivarium: segments as objects, so a link can carry its own settings · Issue #1326 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

vivarium: segments as objects, so a link can carry its own settings #1326

Closed

Description

@Lillecarl

A segment is only a string on an interface (vivarium.interfaces.<name>.segment). A property of the link itself has no place to live: MTU, capture, a forced hub, impairment (#858).

Want: a test-level segments.<name> option with mtu, hub and capture, and later impair. An interface still names its segment by string; a segment nobody declares gets the defaults, so no existing test changes.

netlab treats a link as an object with attributes (mtu, tc, prefix, pool) and assigns addresses from pools. Address pools stay out of core: every test here writes its addresses by hand (tests/segments, tests/routeros-bgp), and examples/frr-clos/clos.nix builds its own link names. A recipe in recipes/ can number a topology later, if a second example wants it.


Assisted-By: Claude Opus 5.5

Activity

  1. added
    source: vivarium
    on Nov 13, 2026
  2. Lillecarl commented on Nov 13, 2026

    @Lillecarl
    ContributorAuthor

    segments.<name> landed with mtu and hub, in "vivarium: segments. sets a segment's MTU and hub". capture comes with the capture and cut issue (#1327), which closes this one.

    • MTU is now per interface in the spec and in every backend: UML vecN, QEMU host_mtu, krun's networkd link, the container tap.
    • A segment that an uplink joins refuses mtu, because the uplink is vivarium.mtu.
    • A declared segment that no guest joins fails evaluation.
    • reload refuses a changed segments.
    • checks.segment-mtu passes on UML, QEMU and krun in the sandbox, and on the container backend as a driver. It gives each guest one declared and one undeclared segment.

    Assisted-By: Claude Opus 5.5

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: vivarium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0