-
Notifications
You must be signed in to change notification settings - Fork 115
core:services:cable-guy: Fix static IP not recovering after lost #3634
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
patrickelectric
merged 1 commit into
bluerobotics:master
from
joaomariolago:fix-missing-static-ip
Nov 6, 2025
Merged
core:services:cable-guy: Fix static IP not recovering after lost #3634
patrickelectric
merged 1 commit into
bluerobotics:master
from
joaomariolago:fix-missing-static-ip
Nov 6, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reviewer's guide (collapsed on small PRs)Reviewer's GuideExtended config_mismatch logic to include BackupServer mode alongside Server and Unmanaged, ensuring static backup-server addresses are properly detected and recovered. Class diagram for updated AddressMode handling in config_mismatchclassDiagram
class AddressMode {
<<enumeration>>
Client
Server
BackupServer
Unmanaged
}
class NetworkInterface {
addresses: List<Address>
name: str
}
class Address {
mode: AddressMode
}
class Manager {
config_mismatch(): Set<NetworkInterface>
}
NetworkInterface "1" -- "*" Address
Address "1" -- "1" AddressMode
Manager "1" -- "*" NetworkInterface
Flow diagram for updated static IP recovery logic in config_mismatchflowchart TD
A["Start config_mismatch()"] --> B["Iterate saved_interface.addresses"]
B --> C{saved_address.mode}
C -->|Client| D["Check for DHCP client address"]
D --> E["Add to mismatches if missing"]
C -->|Server/BackupServer/Unmanaged| F["Check if saved_address in current_interface.addresses"]
F --> G["Add to mismatches if missing"]
E --> H["Continue"]
G --> H
H --> I["Return mismatches"]
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
8cd7e76 to
24f71a8
Compare
* Fix case where a backup-server IP is is removed due to external factors and watchdog cannot recover it
24f71a8 to
08b0626
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
patrickelectric
approved these changes
Nov 6, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix edge case where user does NOT have a dynamic IP requisition and loses the backup-server static IP due to external factors, resulting in watchdog not recovering it.
Summary by Sourcery
Bug Fixes:
Summary by Sourcery
Bug Fixes: