CSIT-786 L2FIB scale testing
[csit.git] / resources / tools / trex / trex_stateless_profile.py
index 1701bab..a3072cf 100755 (executable)
@@ -22,7 +22,7 @@ import sys
 import argparse
 import json
 
-sys.path.insert(0, "/opt/trex-core-2.28/scripts/automation/"
+sys.path.insert(0, "/opt/trex-core-2.29/scripts/automation/"
                    "trex_control_plane/stl/")
 
 from trex_stl_lib.api import *
@@ -125,6 +125,9 @@ def simple_burst(profile_file, duration, framesize, rate, warmup_time, port_0,
         client.reset(ports=[port_0, port_1])
         client.remove_all_streams(ports=[port_0, port_1])
 
+        if "macsrc" in profile_file:
+            client.set_port_attr(ports=[port_0, port_1], promiscuous=True,
+                                 resolve=False)
         if isinstance(framesize, int):
             client.add_streams(streams[0], ports=[port_0])
             client.add_streams(streams[1], ports=[port_1])