Skip to content

Commit

Permalink
Probes
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed Nov 2, 2023
1 parent c9d14ed commit 5e48bc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/tools/interop/idt/discovery/dnssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def handle_service_info(
name: str,
delta_type: str) -> None:
info = zc.get_service_info(type_, name)
if "matter" in type_:
self.discovered_matter_devices[name] = info
# if "matter" in type_:
self.discovered_matter_devices[name] = info
to_log = f"{name}\n"
if info.properties is not None:
for name, value in info.properties.items():
Expand Down
2 changes: 1 addition & 1 deletion src/tools/interop/idt/probe/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ def discover_targets_by_neighbor(self) -> None:
pass

def check_routes(self) -> None:
pass
self.run_command("route -6 -n")
3 changes: 2 additions & 1 deletion src/tools/interop/idt/probe/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, artifact_dir: str, dnssd_artifact_dir: str) -> None:
self.targets: {str, [(str, str)]} = {} # {Hostname: [(addr, port),]}
self.output = os.path.join(self.artifact_dir,
create_standard_log_name("generic_probes", "txt"))
self.suffix = f"2>&1 | tee {self.output}"
self.suffix = f"2>&1 | tee -a {self.output}"
self.interface = None if is_mac() else get_ll_interface()

def run_command(self, cmd: str, capture_output=False) -> Bash:
Expand Down Expand Up @@ -130,3 +130,4 @@ def probe(self) -> None:
self.discover_targets_by_browsing()
self.discover_targets_by_neighbor() # Platform dependent
self.probe_targets()
self.check_routes()

0 comments on commit 5e48bc0

Please sign in to comment.