cable_guy: blacklist zerotier interfaces#3612
Merged
patrickelectric merged 2 commits intobluerobotics:masterfrom Oct 22, 2025
Merged
cable_guy: blacklist zerotier interfaces#3612patrickelectric merged 2 commits intobluerobotics:masterfrom
patrickelectric merged 2 commits intobluerobotics:masterfrom
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR adjusts the order of the cleanup step in set_configuration to run after validating the interface name and updates the default blacklist to exclude Zerotier (zt.*) interfaces. Sequence diagram for updated set_configuration interface validation and cleanup ordersequenceDiagram
participant Caller
participant Manager
participant NetworkHandler
Caller->>Manager: set_configuration(interface, watchdog_call)
alt interface name is valid
Manager->>Manager: get_interfaces()
Manager->>Manager: validate interface.name
alt not watchdog_call
Manager->>NetworkHandler: cleanup_interface_connections(interface.name)
end
Manager->>Manager: set configuration
else interface name is invalid
Manager->>Caller: raise ValueError
end
Class diagram for updated interface blacklist logic in ManagerclassDiagram
class Manager {
+is_valid_interface_name(interface_name: str, filter_wifi: bool = False) bool
blacklist = ["lo", "ham.*", "docker.*", "veth.*", "zt.*"]
}
class NetworkHandler {
+cleanup_interface_connections(interface_name: str)
}
Manager --> NetworkHandler: uses
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
4f4d292 to
d48e77f
Compare
29d05de to
e9b0b82
Compare
patrickelectric
approved these changes
Oct 22, 2025
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
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.
(shitty) fix for #3611
Summary by Sourcery
Blacklist ZeroTier interfaces from network configuration and ensure interface cleanup is only performed for valid non-watchdog calls
Bug Fixes:
Enhancements: