waft.utilities.traffic_analysis module¶
- class waft.utilities.traffic_analysis.TrafficAnalyzer(trace_file: Path)¶
Bases:
object
Class to parse and analyze pcapng files containing node traffic
- Parameters:
trace_file – Path to trace file that is to be analyzed
- assert_no_traffic_to(addresses: Iterable[IPv4Address | IPv6Address] = (), networks: Iterable[IPv4Network | IPv6Network] = (), network_exceptions: Iterable[IPv4Address | IPv6Address] = ())¶
Confirm that none of the given addresses or networks are destination IPs for traffic in the given trace
- Parameters:
addresses – List of target addresses that will cause an assertion if targeted
networks – List of target networks that will cause an assertion if targeted
network_exceptions – Individual addresses within given networks where traffic is allowed