From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 87D6C3F9 for ; Fri, 2 Sep 2016 05:00:51 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 01 Sep 2016 20:00:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,269,1470726000"; d="scan'208";a="1034513403" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.239.254.239]) by fmsmga001.fm.intel.com with ESMTP; 01 Sep 2016 20:00:49 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Fri, 2 Sep 2016 10:56:16 +0800 Message-Id: <1472784976-15927-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1472784791-15853-1-git-send-email-lijuanx.a.tu@intel.com> References: <1472784791-15853-1-git-send-email-lijuanx.a.tu@intel.com> Subject: [dts] [PATCH 1/2] vxlan: fix vlan load pcap error X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2016 03:00:52 -0000 vxlan is not supported by scapy, and thus the packets are interpreted as raw packets. Signed-off-by: Lijuan Tu --- tests/TestSuite_vxlan.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index c1d0200..d5274fc 100644 --- a/tests/TestSuite_vxlan.py +++ b/tests/TestSuite_vxlan.py @@ -24,7 +24,7 @@ from scapy.config import conf from scapy.route import * from test_case import TestCase -from settings import HEADER_SIZE +from settings import HEADER_SIZE, FOLDERS from etgen import IxiaPacketGenerator # @@ -236,6 +236,11 @@ class VxlanTestConfig(object): """ Send vxlan pcap file by iface """ + # load vxlan module to scapy + cwd = os.getcwd() + dir_vxlan_module = cwd + r'/' + FOLDERS['Depends'] + self.test_case.tester.scapy_append("sys.path.append('%s')" % dir_vxlan_module) + self.test_case.tester.scapy_append("from vxlan import Vxlan") self.test_case.tester.scapy_append( 'pcap = rdpcap("%s")' % self.pcap_file) self.test_case.tester.scapy_append( -- 1.9.3