Skip to content

fix: restore ipv6_prefix to vm_state.config during snapshot run#563

Closed
claude-claude[bot] wants to merge 1 commit intorouted-ipv6-prefixfrom
claude/fix-22702319914
Closed

fix: restore ipv6_prefix to vm_state.config during snapshot run#563
claude-claude[bot] wants to merge 1 commit intorouted-ipv6-prefixfrom
claude/fix-22702319914

Conversation

@claude-claude
Copy link
Contributor

@claude-claude claude-claude bot commented Mar 5, 2026

Auto-Fix for PR #559

Issues Fixed

  • [MEDIUM] ipv6_prefix not restored to vm_state.config during snapshot run: The snapshot restore path passes ipv6_prefix to RoutedNetwork::with_ipv6_prefix() for networking setup, but never writes it back to vm_state.config. This means build_snapshot_config() reads None from vm_state.config.ipv6_prefix, breaking cascaded snapshot chains.
  • [LOW] README says <CIDR> instead of <PREFIX>: The --ipv6-prefix flag takes 4 colon-separated hex groups (e.g., 2803:6084:7058:46f6), not CIDR notation.

Changes

  • src/commands/snapshot.rs: Add vm_state.config.ipv6_prefix = snapshot_config.metadata.ipv6_prefix.clone() alongside the other config restorations.
  • README.md: Change --ipv6-prefix <CIDR> to --ipv6-prefix <PREFIX>.

Generated by Claude | Review Run

Add the missing `vm_state.config.ipv6_prefix` restoration alongside
other config fields in the snapshot run path. Without this, cascaded
snapshots (creating a snapshot from a clone) lose the prefix because
`build_snapshot_config()` reads from `vm_state.config`.

Also fix README CLI reference: `<CIDR>` → `<PREFIX>` to match the
actual input format (4 colon-separated hex groups, not CIDR notation).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ejc3
Copy link
Owner

ejc3 commented Mar 5, 2026

Cherry-picked into routed-ipv6-prefix (0953b6e). Not needed as separate PR.

@ejc3 ejc3 closed this Mar 5, 2026
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.

1 participant