Skip to content

Refined network management#1672

Merged
crschardt merged 25 commits intoPhotonVision:mainfrom
crschardt:refined-network-management
Jan 3, 2025
Merged

Refined network management#1672
crschardt merged 25 commits intoPhotonVision:mainfrom
crschardt:refined-network-management

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
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.
mcm001 pushed a commit to mcm001/photonvision that referenced this pull request Feb 18, 2025
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)
@Gold856 Gold856 added frontend Having to do with PhotonClient and its related items backend Things relating to photon-core and photon-server labels Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Things relating to photon-core and photon-server frontend Having to do with PhotonClient and its related items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants