p4utils.utils.monitor module

class p4utils.utils.monitor.Monitor(csv_file, i, t=0.5, d=60)[source]

Bases: object

Monitor the interface bandwidth and dump a .csv file with the rates in Mbps.

Parameters:
  • csv_file (string) – path to the output file
  • i (string) – name of the interface to monitor
  • t (float) – interval between data points
  • d (float) – monitoring duration
p4utils.utils.monitor.get_args()[source]