diff options
author | 2016-05-11 13:27:22 +0300 | |
---|---|---|
committer | 2016-05-11 13:27:22 +0300 | |
commit | 0bd2c9ce6c5264b9b3a9a6e42286edae389ebce4 (patch) | |
tree | 8e036d790ef7d5ac0f434e4c821e96a0882790af /scripts/automation/trex_control_plane/doc_stl/api/client_code.rst | |
parent | cd380381f300e5cb5db489a1dfd829350e9ff691 (diff) |
add more example for client api
Diffstat (limited to 'scripts/automation/trex_control_plane/doc_stl/api/client_code.rst')
-rwxr-xr-x | scripts/automation/trex_control_plane/doc_stl/api/client_code.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/doc_stl/api/client_code.rst b/scripts/automation/trex_control_plane/doc_stl/api/client_code.rst index d3e48dab..165a9a0d 100755 --- a/scripts/automation/trex_control_plane/doc_stl/api/client_code.rst +++ b/scripts/automation/trex_control_plane/doc_stl/api/client_code.rst @@ -42,6 +42,11 @@ Example 1 - Typical Python API:: # block until done c.wait_on_traffic(ports = [0, 1]) + + # check for any warnings + if c.get_warnings(): + # handle warnings here + pass finally: c.disconnect() |