[Bug] Primary route no longer shown in CLI #974

Closed
opened 2025-12-29 02:26:58 +01:00 by adam · 0 comments
Owner

Originally created by @nblock on GitHub (Mar 16, 2025).

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The routes list command of Headscale 0.25 or earlier has a Primary column to indicate which route is actually used when multiple ones are available:

ID | Node     | Prefix                | Advertised | Enabled | Primary
1  | n1       | 10.10.10.0/24         | true       | true    | true   
...

The Primary column is no longer present in the output of the new nodes list-routes command:

ID | Hostname | Approved        | Available       | Serving        
1  | n1       | 10.10.10.0/24   | 10.10.10.0/24   | 10.10.10.0/24                    

The information is available via the debug endpoint /debug/routes.

Expected Behavior

Have a column Primary in the output of nodes list-routes.

Steps To Reproduce

Compare output of nodes list-routes with the content of the /debug/routes debug endpoint.

Environment

- OS: Debian 12
- Headscale version: 586a20fbff4e97519d68a7fdd0d75e1c7decec30
- Tailscale version: -

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Anything else?

No response

Originally created by @nblock on GitHub (Mar 16, 2025). ### Is this a support request? - [x] This is not a support request ### Is there an existing issue for this? - [x] I have searched the existing issues ### Current Behavior The `routes list` command of Headscale 0.25 or earlier has a `Primary` column to indicate which route is actually used when multiple ones are available: ``` ID | Node | Prefix | Advertised | Enabled | Primary 1 | n1 | 10.10.10.0/24 | true | true | true ... ``` The `Primary` column is no longer present in the output of the new `nodes list-routes` command: ``` ID | Hostname | Approved | Available | Serving 1 | n1 | 10.10.10.0/24 | 10.10.10.0/24 | 10.10.10.0/24 ``` The information is available via the debug endpoint /debug/routes. ### Expected Behavior Have a column `Primary` in the output of `nodes list-routes`. ### Steps To Reproduce Compare output of `nodes list-routes` with the content of the `/debug/routes` debug endpoint. ### Environment ```markdown - OS: Debian 12 - Headscale version: 586a20fbff4e97519d68a7fdd0d75e1c7decec30 - Tailscale version: - ``` ### Runtime environment - [ ] Headscale is behind a (reverse) proxy - [ ] Headscale runs in a container ### Anything else? _No response_
adam added the bug label 2025-12-29 02:26:58 +01:00
adam closed this issue 2025-12-29 02:26:58 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#974