Skip to content

Commit

Permalink
Collect tcpdumps from all gateways
Browse files Browse the repository at this point in the history
Previously only gateways which were the default gateways for some node
had the tcpdumps collected.
  • Loading branch information
tomaszklak committed Dec 3, 2024
1 parent 9d7cc0c commit 21d2289
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Empty file.
8 changes: 5 additions & 3 deletions nat-lab/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from utils.connection_util import (
ConnectionTag,
container_id,
DOCKER_GW_MAP,
LAN_ADDR_MAP,
new_connection_raw,
)
Expand Down Expand Up @@ -421,7 +420,9 @@ def pytest_sessionstart(session):
return

if not session.config.option.collectonly:
start_tcpdump({container_id(gw_tag) for gw_tag in DOCKER_GW_MAP.values()})
start_tcpdump(
{container_id(gw_tag) for gw_tag in ConnectionTag if "_GW" in gw_tag.name}
)


# pylint: disable=unused-argument
Expand All @@ -431,7 +432,8 @@ def pytest_sessionfinish(session, exitstatus):

if not session.config.option.collectonly:
stop_tcpdump(
{container_id(gw_tag) for gw_tag in DOCKER_GW_MAP.values()}, "./logs"
{container_id(gw_tag) for gw_tag in ConnectionTag if "_GW" in gw_tag.name},
"./logs",
)

collect_nordderper_logs()
Expand Down

0 comments on commit 21d2289

Please sign in to comment.