summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/doc_stl
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-04-19 03:19:28 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-04-19 03:19:28 +0300
commit6840551a8733fefdd8b3f235e4a802524ecc39d9 (patch)
tree2208741daedb73a0e630cdd284091dd3b5c76633 /scripts/automation/trex_control_plane/doc_stl
parent6c46ecabec713485954dc7394e8a9808309fb4bc (diff)
parente6d1ca8bc126b2efc5a15268cd2d9926f1be3ab9 (diff)
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'scripts/automation/trex_control_plane/doc_stl')
-rwxr-xr-xscripts/automation/trex_control_plane/doc_stl/api/client_code.rst5
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()