diff options
author | 2016-04-17 15:29:34 +0300 | |
---|---|---|
committer | 2016-04-17 15:29:34 +0300 | |
commit | cd40f4a30b5535363e29c9d516976a549229d82d (patch) | |
tree | 4c7aff6ffca5ef979f274fa315abc984fd1d0572 /scripts/automation/trex_control_plane/doc_stl/api | |
parent | 882bc200c58a18a1eabd7b5db6c0ee7e6e5068f1 (diff) |
added example for get_warnings()
Diffstat (limited to 'scripts/automation/trex_control_plane/doc_stl/api')
-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 4ae2b9fd..d3e48dab 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 @@ -82,6 +82,11 @@ STLClient snippet # 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() |