From cd40f4a30b5535363e29c9d516976a549229d82d Mon Sep 17 00:00:00 2001 From: imarom Date: Sun, 17 Apr 2016 15:29:34 +0300 Subject: added example for get_warnings() --- scripts/automation/trex_control_plane/doc_stl/api/client_code.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/automation/trex_control_plane/doc_stl') 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() -- cgit 1.2.3-korg