Autodetect network interface when generating default config #13

Closed
opened 2024-04-21 00:35:33 +00:00 by steven · 2 comments
Owner

A quality of life feature. Instead of just writing a canned value such as "enp0s3" in the default config, we should instead take stock of what we have on the machine and make a good guess for what interface is likely to be used.

A quality of life feature. Instead of just writing a canned value such as "enp0s3" in the default config, we should instead take stock of what we have on the machine and make a good guess for what interface is likely to be used.
steven added the
enhancement
hypd / Server
labels 2024-04-21 00:35:33 +00:00
steven self-assigned this 2024-04-21 00:35:33 +00:00
Author
Owner

Election process

Something like the following filters from first to last until there is only one interface left. If multiple left at the end, then just pick one.

  1. Find all interfaces
  2. Look for ethernet interfaces
  3. Look for up interfaces
  4. Look for IP interfaces
  5. Look for non-RFC1918 interfaces
  6. First / random selection
## Election process Something like the following filters from first to last until there is only one interface left. If multiple left at the end, then just pick one. 1. Find all interfaces 2. Look for ethernet interfaces 3. Look for up interfaces 4. Look for IP interfaces 5. Look for non-RFC1918 interfaces 6. First / random selection
Author
Owner

Completed in 0942fb132f

Completed in 0942fb132f694b08701d105c8d5b29ab8db144bc
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: steven/hyp#13
No description provided.