breakage to flow ctrl - fixed
authorimarom <[email protected]>
Tue, 6 Dec 2016 08:54:21 +0000 (10:54 +0200)
committerimarom <[email protected]>
Tue, 6 Dec 2016 08:54:21 +0000 (10:54 +0200)
Signed-off-by: imarom <[email protected]>
scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_port.py

index ef74a85..389a942 100644 (file)
@@ -675,7 +675,7 @@ class Port(object):
             json_attr['led_status'] = {'on': kwargs.get('led_status')}
         
         if kwargs.get('flow_ctrl_mode') is not None:
-            json_attr['flow_ctrl_mode'] = {'on': kwargs.get('flow_ctrl_mode')}
+            json_attr['flow_ctrl_mode'] = {'mode': kwargs.get('flow_ctrl_mode')}
 
         if kwargs.get('rx_filter_mode') is not None:
             json_attr['rx_filter_mode'] = {'mode': kwargs.get('rx_filter_mode')}