feat(core): T-Rex 3.03 73/38873/4
authorpmikus <peter.mikus@protonmail.ch>
Wed, 24 May 2023 12:40:14 +0000 (12:40 +0000)
committerpmikus <peter.mikus@protonmail.ch>
Fri, 26 May 2023 11:21:42 +0000 (11:21 +0000)
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I58607f50e2889092e40ff831ed4f1515444e29f8

GPL/tools/trex/trex_astf_assert.py
GPL/tools/trex/trex_astf_profile.py
GPL/tools/trex/trex_astf_stop.py
GPL/tools/trex/trex_stl_assert.py
GPL/tools/trex/trex_stl_profile.py
GPL/tools/trex/trex_stl_stop.py
GPL/traffic_profiles/trex/profile_trex_astf_base_class.py
fdio.infra.ansible/roles/trex/defaults/main.yaml
fdio.infra.ansible/roles/trex/tasks/deploy_block.yaml
fdio.infra.ansible/roles/trex/tasks/main.yaml
resources/libraries/python/Constants.py

index cc54f17..107253f 100644 (file)
@@ -38,7 +38,7 @@ Functionality:
 import sys
 
 sys.path.insert(
-    0, u"/opt/trex-core-3.00/scripts/automation/trex_control_plane/interactive/"
+    0, u"/opt/trex-core-3.03/scripts/automation/trex_control_plane/interactive/"
 )
 from trex.astf.api import ASTFClient, TRexError
 
index 29722c9..ccda573 100644 (file)
@@ -34,7 +34,7 @@ import sys
 import time
 
 sys.path.insert(
-    0, u"/opt/trex-core-3.00/scripts/automation/trex_control_plane/interactive/"
+    0, u"/opt/trex-core-3.03/scripts/automation/trex_control_plane/interactive/"
 )
 from trex.astf.api import ASTFClient, ASTFProfile, TRexError
 
index 77f6cd3..699f4d4 100644 (file)
@@ -44,7 +44,7 @@ import sys
 from collections import OrderedDict  # Needed to parse xstats representation.
 
 sys.path.insert(
-    0, u"/opt/trex-core-3.00/scripts/automation/trex_control_plane/interactive/"
+    0, u"/opt/trex-core-3.03/scripts/automation/trex_control_plane/interactive/"
 )
 from trex.astf.api import ASTFClient
 
index 426df5b..f705619 100644 (file)
@@ -38,7 +38,7 @@ Functionality:
 import sys
 
 sys.path.insert(
-    0, u"/opt/trex-core-3.00/scripts/automation/trex_control_plane/interactive/"
+    0, u"/opt/trex-core-3.03/scripts/automation/trex_control_plane/interactive/"
 )
 from trex.stl.api import STLClient, STLError
 
index 7b7ef6e..324ad41 100644 (file)
@@ -34,7 +34,7 @@ import sys
 import time
 
 sys.path.insert(
-    0, u"/opt/trex-core-3.00/scripts/automation/trex_control_plane/interactive/"
+    0, u"/opt/trex-core-3.03/scripts/automation/trex_control_plane/interactive/"
 )
 from trex.stl.api import STLClient, STLProfile, STLError
 
index 7f111cb..9cc1814 100644 (file)
@@ -44,7 +44,7 @@ import sys
 from collections import OrderedDict  # Needed to parse xstats representation.
 
 sys.path.insert(
-    0, u"/opt/trex-core-3.00/scripts/automation/trex_control_plane/interactive/"
+    0, u"/opt/trex-core-3.03/scripts/automation/trex_control_plane/interactive/"
 )
 from trex.stl.api import STLClient
 
index f4336ab..55aedd0 100644 (file)
@@ -135,7 +135,7 @@ class TrafficProfileBaseClass:
         self.framesize = kwargs[u"framesize"]
         self.n_data_frames = kwargs[u"n_data_frames"]
         self._pcap_dir = kwargs.get(
-            u"pcap_dir", u"/opt/trex-core-3.00/scripts/avl"
+            u"pcap_dir", u"/opt/trex-core-3.03/scripts/avl"
         )
 
         return self.create_profile()
index 804b1f3..18a2b56 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# file: roles/trex/defaults/main.yaml
+# file: defaults/main.yaml
 
 packages: "{{ packages_base + packages_by_distro[ansible_distribution|lower] + packages_by_arch[ansible_machine] }}"
 
@@ -30,4 +30,4 @@ packages_by_arch:
 trex_target_dir: "/opt"
 trex_url: "https://github.com/cisco-system-traffic-generator/trex-core/archive/"
 trex_version:
-  - "3.00"
+  - "3.03"
index 23948bc..1a747f6 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# file: roles/trex/tasks/deploy_block.yaml
+# file: tasks/deploy_block.yaml
 
 - name: Get Release {{ item }}
   ansible.builtin.get_url:
     creates: "{{ trex_target_dir }}/trex-core-{{ item }}/linux_dpdk/"
   register: trex_extracted
 
-- name: Patch Azure
-  ansible.builtin.patch:
-    src: "files/t-rex.patch"
-    basedir: "{{ trex_target_dir }}/trex-core-{{ item }}"
-    strip: 1
-  when:
-    - azure is defined and item == "2.73"
-
-- name: Reset gcc-9
-  ansible.builtin.command: "update-alternatives --remove-all gcc"
-  ignore_errors: true
-  when: trex_extracted.changed
-
-- name: Reset g++-9
-  ansible.builtin.command: "update-alternatives --remove-all g++"
-  ignore_errors: true
-  when: trex_extracted.changed
-
-- name: Switch to gcc-9
-  ansible.builtin.command: "update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9"
-  when: trex_extracted.changed
-
-- name: Switch to g++-9
-  ansible.builtin.command: "update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9"
-  when: trex_extracted.changed
-
 - name: Compile Release {{ item }} Part I
   ansible.builtin.command: "./b configure"
   args:
   retries: 300
   when: trex_extracted.changed
 
-- name: Switch to gcc-11
-  ansible.builtin.command: "update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11"
-  when: trex_extracted.changed
-
-- name: Switch to g++-11
-  ansible.builtin.command: "update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11"
-  when: trex_extracted.changed
-
 - name: Compile Release {{ item }} Part III
   ansible.builtin.command: "make -j 16"
   args:
index 5cdf041..d0509f7 100644 (file)
@@ -1,5 +1,5 @@
 ---
-# file: roles/trex/tasks/main.yaml
+# file: tasks/main.yaml
 
 - name: Update Package Cache (APT)
   ansible.builtin.apt:
index 1a4b10d..fcb1ca9 100644 (file)
@@ -189,7 +189,7 @@ class Constants:
     DOCKER_SUT_IMAGE_UBUNTU_ARM = u"csit_sut-ubuntu2204:local"
 
     # TRex install directory
-    TREX_INSTALL_DIR = u"/opt/trex-core-3.00"
+    TREX_INSTALL_DIR = u"/opt/trex-core-3.03"
 
     # TRex pcap files directory
     TREX_PCAP_DIR = f"{TREX_INSTALL_DIR}/scripts/avl"