Skip to content

cli: add tunnel_endpoint to user list output#3588

Open
juan-malbeclabs wants to merge 7 commits intomainfrom
cli/user-list-tunnel-endpoint
Open

cli: add tunnel_endpoint to user list output#3588
juan-malbeclabs wants to merge 7 commits intomainfrom
cli/user-list-tunnel-endpoint

Conversation

@juan-malbeclabs
Copy link
Copy Markdown
Contributor

Summary of Changes

  • Added tunnel_endpoint field to UserDisplay in doublezero user list, exposing it in both table and JSON (--json) output
  • Updated e2e fixtures to include the new column

Diff Breakdown

Category Files Lines (+/-) Net
Core logic 1 +4 / -2 +2
Tests 3 +7 / -7 0
Total 4 +11 / -9 +2

Minimal change: one new field surfaced in the CLI, test fixtures updated to match.

Key files (click to expand)
  • smartcontract/cli/src/user/list.rs -- adds tunnel_endpoint: Ipv4Addr to UserDisplay and maps it from user.tunnel_endpoint

Testing Verification

  • Unit tests in user::list updated and passing (table and JSON output assertions cover the new column)
  • e2e fixtures for IBRL and IBRLWithAllocatedIP updated to include tunnel_endpoint column (0.0.0.0 for users with no explicit endpoint set)

@juan-malbeclabs juan-malbeclabs enabled auto-merge (squash) April 24, 2026 20:42
@juan-malbeclabs juan-malbeclabs force-pushed the cli/user-list-tunnel-endpoint branch from 9a149d5 to 9f2ae83 Compare April 25, 2026 12:06
…t IP

The activator resolves the 0.0.0.0 sentinel to la2-dz01's public IP
(207.45.216.134) during activation and writes it back to the onchain
account, so the CLI shows the resolved IP. The previous revert was
incorrect.
The activator resolves 0.0.0.0 to the device's public IP in stateful
mode, but passes it through unchanged in stateless (onchain allocation)
mode. Hardcoding either value causes failures depending on the env.

Capture tunnel_endpoint via parseIBRLTunnelInfo and use it as a
template variable, matching the existing pattern for tunnel_id and
tunnel_net.
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