8000 Add support for tracking network interfaces on routers and identities. Fixes #3082. Add network discover to router. Fixes #3083 by plorenz · Pull Request #3097 · openziti/ziti · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for tracking network interfaces on routers and identities. Fixes #3082. Add network discover to router. Fixes #3083 #3097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

plorenz
Copy link
Member
@plorenz plorenz commented Jun 13, 2025

No description provided.

@plorenz plorenz requested review from a team as code owners June 13, 2025 17:01
@plorenz plorenz force-pushed the network-interfaces branch 3 times, most recently from 5719aad to 1b419ea Compare June 13, 2025 18:51
if ctx.ProceedWithSet(FieldInterfaces) {
m := map[string]any{}
for idx, v := range interfaces {
m[fmt.Sprintf("%d.%s", idx, v.Name)] = v.toBoltMap()
Copy link
Member

Choose a reason for hiding this comment

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

So this uses the report order + interface name as the unique key? If the OS reports the order differently, it would have to be an entirely new map with every update.

It isn't an issue as long as we never directly reference the key values as foreign keys and only use this as information for a user to make other decisions. Otherwise, MAC address would probably have been better.

Copy link
Member Author

Choose a reason for hiding this comment

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

The list is always sorted by name, so the order should be consistent. interface names are supposed to be unique, so the index shouldn't even be required, but I added it just in case there was some oddity. The value is never exposed to the end user.

@plorenz plorenz force-pushed the network-interfaces branch from 1b419ea to cc7eefa Compare June 17, 2025 13:32
@plorenz plorenz merged commit 8fb920f into main Jun 17, 2025
36 checks passed
@plorenz plorenz deleted the network-interfaces branch June 17, 2025 13:58
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.

2 participants
0