[V2] framework/packet: optimize support for more gtp modules

Message ID 20230328073945.25760-1-weiyuanx.li@intel.com (mailing list archive)
State Accepted
Headers
Series [V2] framework/packet: optimize support for more gtp modules |

Checks

Context Check Description
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-suite-test success Testing OK

Commit Message

Weiyuan Li March 28, 2023, 7:39 a.m. UTC
For packet.py, only support limited gtp modules, some test cases require support for the echo-request/echo-reponse modules.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---

v2:
-fix format issue.

 framework/packet.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
  

Comments

Tu, Lijuan April 11, 2023, 7:48 a.m. UTC | #1
On Tue, 28 Mar 2023 15:39:45 +0800, Weiyuan Li <weiyuanx.li@intel.com> wrote:
> For packet.py, only support limited gtp modules, some test cases require support for the echo-request/echo-reponse modules.
> 
> Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>

Reviewed-by: Lijuan Tu <lijuan.tu@intel.com>
Applied, thanks
  

Patch

diff --git a/framework/packet.py b/framework/packet.py
index f56bf178..ae99b6b7 100644
--- a/framework/packet.py
+++ b/framework/packet.py
@@ -45,7 +45,12 @@  if not os.path.exists(TMP_PATH):
     os.system("mkdir -p %s" % TMP_PATH)
 
 scapy_modules_required = {
-    "scapy.contrib.gtp": ["GTP_U_Header", "GTPPDUSessionContainer"],
+    "scapy.contrib.gtp": [
+        "GTP_U_Header",
+        "GTPPDUSessionContainer",
+        "GTPEchoRequest",
+        "GTPEchoResponse",
+    ],
     "scapy.contrib.lldp": ["LLDPDU", "LLDPDUManagementAddress"],
     "scapy.contrib.pfcp": ["PFCP"],
     "scapy.contrib.nsh": ["NSH"],