X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Ftrex%2Ftrex_stateless_profile.py;h=311c85f5d87f81e7121980ceb578d84f22c1f128;hp=a3072cfaedf9703658e24700396d640b7bf4a8a6;hb=ab94abd6fea7e4015c3fdc3130beb35b59582d58;hpb=7cb42e0a9f7785a7ffbc6076a1d5784b203cf9eb diff --git a/resources/tools/trex/trex_stateless_profile.py b/resources/tools/trex/trex_stateless_profile.py index a3072cfaed..311c85f5d8 100755 --- a/resources/tools/trex/trex_stateless_profile.py +++ b/resources/tools/trex/trex_stateless_profile.py @@ -22,7 +22,7 @@ import sys import argparse import json -sys.path.insert(0, "/opt/trex-core-2.29/scripts/automation/" +sys.path.insert(0, "/opt/trex-core-2.34/scripts/automation/" "trex_control_plane/stl/") from trex_stl_lib.api import * @@ -109,11 +109,9 @@ def simple_burst(profile_file, duration, framesize, rate, warmup_time, port_0, print("### Profile file:\n{}".format(profile_file)) profile = STLProfile.load(profile_file, direction=0, port_id=0, framesize=framesize) - print("\n### Profiles ###\n") - print(profile.dump_to_yaml()) streams = profile.get_streams() - except STLError: - print("Error while loading profile '{0}'\n".format(profile_file)) + except STLError as err: + print("Error while loading profile '{0}' {1}".format(profile_file, err)) sys.exit(1) try: