aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/t-rex/t-rex-stateless.py
diff options
context:
space:
mode:
authorMiroslav Miklus <mmiklus@cisco.com>2016-07-28 13:33:18 +0200
committerMiroslav Miklus <mmiklus@cisco.com>2016-08-10 11:31:25 +0000
commit72be8262ea5dc0136a21032402b7f4ffa5ff4576 (patch)
tree73708f944e30f37dfe36ac02ab8f5d35fd13d88f /resources/tools/t-rex/t-rex-stateless.py
parentb2841cae8eb34a0a0c5b26cf344d6a0d39a1af3e (diff)
CSIT-321 L2 Cross-connect - baseline - NIC-to-NIC(XL710)
Change-Id: I0c78d17242eedbfa573f1e2c20dc491a71b8dd4a Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
Diffstat (limited to 'resources/tools/t-rex/t-rex-stateless.py')
-rwxr-xr-xresources/tools/t-rex/t-rex-stateless.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/t-rex/t-rex-stateless.py b/resources/tools/t-rex/t-rex-stateless.py
index 6c7579d0c3..f456b66316 100755
--- a/resources/tools/t-rex/t-rex-stateless.py
+++ b/resources/tools/t-rex/t-rex-stateless.py
@@ -380,7 +380,7 @@ def simple_burst(stream_a, stream_b, stream_lat_a, stream_lat_b, duration, rate,
if client.get_warnings():
for warning in client.get_warnings():
- print_error(warning)
+ print(warning)
# read the stats after the test
stats = client.get_stats()
@@ -408,7 +408,7 @@ def simple_burst(stream_a, stream_b, stream_lat_a, stream_lat_b, duration, rate,
if client.get_warnings():
for warning in client.get_warnings():
- print_error(warning)
+ print(warning)
# read the stats after the test
stats = client.get_stats()
t;http_static/http_static.api_types.h> #include <vpp/api/types.h> #define vl_print(handle, ...) vlib_cli_output (handle, __VA_ARGS__) #define REPLY_MSG_ID_BASE hmp->msg_id_base #include <vlibapi/api_helper_macros.h> http_static_main_t http_static_main; /* API message handler */ static void vl_api_http_static_enable_t_handler (vl_api_http_static_enable_t * mp) { vl_api_http_static_enable_reply_t *rmp; http_static_main_t *hmp = &http_static_main; int rv; mp->uri[ARRAY_LEN (mp->uri) - 1] = 0; mp->www_root[ARRAY_LEN (mp->www_root) - 1] = 0; rv = http_static_server_enable_api (ntohl (mp->fifo_size), ntohl (mp->cache_size_limit), ntohl (mp->prealloc_fifos), ntohl (mp->private_segment_size), mp->www_root, mp->uri); REPLY_MACRO (VL_API_HTTP_STATIC_ENABLE_REPLY); } #include <http_static/http_static.api.c> static clib_error_t * http_static_init (vlib_main_t * vm) { http_static_main_t *hmp = &http_static_main; hmp->vlib_main = vm; hmp->vnet_main = vnet_get_main (); /* Ask for a correctly-sized block of API message decode slots */ hmp->msg_id_base = setup_message_id_table (); return 0; } VLIB_INIT_FUNCTION (http_static_init); /* *INDENT-OFF* */ VLIB_PLUGIN_REGISTER () = { .version = VPP_BUILD_VER, .description = "HTTP Static Server" }; /* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */