Skip to content
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

Refined network management #1672

Merged
merged 25 commits into from
Jan 3, 2025

Conversation

crschardt
Copy link
Contributor

This PR implements several refinements to the way that NetworkManager controls the network interface.

  • The monitor detects and logs changes to the network address
  • The monitor detects and logs changes to the connection and will reinitialize the connection if needed
  • Remove NetworkInterface.java class, which wasn't used anywhere
  • Use java.net.NetworkInterface to get IP addresses for any interface (device)
  • Adds a metric for the current IP address (address on the currently selected interface)

@crschardt crschardt requested a review from a team as a code owner January 2, 2025 01:45
@mcm001
Copy link
Contributor

mcm001 commented Jan 2, 2025

Will test on Chris' bench today

Copy link
Contributor

@mcm001 mcm001 left a comment

Choose a reason for hiding this comment

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

Passes smoke test for me anyway

@crschardt crschardt merged commit 474e4f0 into PhotonVision:main Jan 3, 2025
34 checks passed
crschardt added a commit to PhotonVision/photon-image-modifier that referenced this pull request Jan 4, 2025
With PhotonVision/photonvision#1672, the network
handling is more robust. It should be OK to not wait for NetworkManager
to detect online during the boot process. This will speed bootup,
especially first boot if the system isn't connected to a network.
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