summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/doc_stl/api/profile_code.rst
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/trex_control_plane/doc_stl/api/profile_code.rst')
-rw-r--r--scripts/automation/trex_control_plane/doc_stl/api/profile_code.rst8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/doc_stl/api/profile_code.rst b/scripts/automation/trex_control_plane/doc_stl/api/profile_code.rst
index 9484f565..b2b23e48 100644
--- a/scripts/automation/trex_control_plane/doc_stl/api/profile_code.rst
+++ b/scripts/automation/trex_control_plane/doc_stl/api/profile_code.rst
@@ -81,7 +81,9 @@ STLProfile snippet
------------------
-Example1::
+.. code-block:: python
+ :caption: Example1
+
size = self.fsize - 4; # no FCS
base_pkt = Ether()/IP(src="16.0.0.1",dst="48.0.0.1")/UDP(dport=12,sport=1025)
@@ -110,7 +112,9 @@ Example1::
]).get_streams()
-Example2::
+.. code-block:: python
+ :caption: Example2
+
class STLS1(object):