Skip to content

Comments

activator: support for dzd metadata#1055

Merged
elitegreg merged 3 commits intomainfrom
gm/dzd-metadata-activator
Aug 5, 2025
Merged

activator: support for dzd metadata#1055
elitegreg merged 3 commits intomainfrom
gm/dzd-metadata-activator

Conversation

@elitegreg
Copy link
Contributor

Summary of Changes

  • Adds support for allocating IPs/segment IDs to interfaces.
  • Does not support reclaiming resources, this will be added in a later PR.

Testing Verification

  • Unit tests
  • E2E
  • Manual testing

* Adds support for allocating IPs/segment IDs to interfaces.
* Does not support reclaiming resources, this will be added in a later
  PR.
@elitegreg elitegreg requested a review from Copilot August 5, 2025 01:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for allocating IPs and segment IDs to device interfaces in the activator component. The changes enable automatic assignment of segment routing IDs and IP addresses to device loopback interfaces, along with IP assignment to tunnel link interfaces during activation and deactivation processes.

  • Adds segment routing ID allocation for device loopback interfaces
  • Implements IP address assignment to tunnel interfaces during link activation/deactivation
  • Updates device processing to handle interface metadata allocation

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
smartcontract/sdk/rs/src/lib.rs Adds interface-related type imports to support device interface handling
smartcontract/programs/doublezero-record/src/instruction.rs Updates size_of usage to use std::mem::size_of for consistency
activator/src/process/link.rs Implements IP assignment to device interfaces during link activation/deactivation
activator/src/process/device.rs Adds segment routing ID and loopback IP allocation for device interfaces
activator/src/activator.rs Integrates segment routing ID allocator and updates device processing

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@elitegreg elitegreg merged commit 222bba6 into main Aug 5, 2025
15 checks passed
@elitegreg elitegreg deleted the gm/dzd-metadata-activator branch August 5, 2025 15:17
@elitegreg elitegreg linked an issue Aug 6, 2025 that may be closed by this pull request
@elitegreg elitegreg linked an issue Aug 6, 2025 that may be closed by this pull request
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.

DZD Metadata: Activator changes

2 participants