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

Weiyuan Li weiyuanx.li at intel.com
Tue Mar 28 09:39:45 CEST 2023


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 at intel.com>
---

v2:
-fix format issue.

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

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"],
-- 
2.27.0



More information about the dts mailing list