Skip to content

Commit d48e77f

Browse files
cable_guy: blacklist zerotier interfaces
1 parent c8a57fc commit d48e77f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/services/cable_guy/api/manager.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def is_valid_interface_name(self, interface_name: str, filter_wifi: bool = False
181181
Returns:
182182
bool: True if valid, False if not
183183
"""
184-
blacklist = ["lo", "ham.*", "docker.*", "veth.*"]
184+
blacklist = ["lo", "ham.*", "docker.*", "veth.*", "zt.*"]
185185
if filter_wifi:
186186
wifi_interfaces = self._get_wifi_interfaces()
187187
blacklist += wifi_interfaces
@@ -888,6 +888,9 @@ def config_mismatch(self) -> Set[NetworkInterface]:
888888
if current_interface.name not in saved_interfaces:
889889
logger.debug(f"Interface {current_interface.name} not in saved configuration, skipping")
890890
continue
891+
if not self.is_valid_interface_name(current_interface.name):
892+
logger.debug(f"Interface {current_interface.name} is not valid, skipping config mismatch check")
893+
continue
891894
saved_interface = saved_interfaces[current_interface.name]
892895

893896
for saved_address in saved_interface.addresses:

0 commit comments

Comments
 (0)