rstp-stp: Add basic functions for stp/rstp enable on ovs
[vswitchperf.git] / vsperf
diff --git a/vsperf b/vsperf
index 789e5df..f2f443b 100755 (executable)
--- a/vsperf
+++ b/vsperf
@@ -622,6 +622,10 @@ def main():
             traffic_ctl.send_traffic(traffic)
         _LOGGER.debug("Traffic Results:")
         traffic_ctl.print_results()
+
+        # write results into CSV file
+        result_file = os.path.join(results_path, "result.csv")
+        PerformanceTestCase.write_result_to_file(traffic_ctl.get_results(), result_file)
     else:
         # configure tests
         if args['integration']: