From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id B1B81558F for ; Thu, 5 May 2016 06:15:36 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP; 04 May 2016 21:15:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,580,1455004800"; d="scan'208";a="969086644" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 04 May 2016 21:15:34 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u454FXeQ031964; Thu, 5 May 2016 12:15:33 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u454FU65005073; Thu, 5 May 2016 12:15:32 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u454FUMP005069; Thu, 5 May 2016 12:15:30 +0800 From: Marvin Liu To: dts@dpdk.org Cc: Marvin Liu Date: Thu, 5 May 2016 12:15:29 +0800 Message-Id: <1462421729-5037-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] tests vlan: fix vlan not insert 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: Thu, 05 May 2016 04:15:37 -0000 Function name for vlan changed in packet module. Vlan suite should also updated as followed. Signed-off-by: Marvin Liu --- tests/TestSuite_vlan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vlan.py b/tests/TestSuite_vlan.py index ba3741e..1c4608b 100644 --- a/tests/TestSuite_vlan.py +++ b/tests/TestSuite_vlan.py @@ -90,7 +90,7 @@ class TestVlan(TestCase): pkts = load_sniff_packets(self.inst) vlans = [] for packet in pkts: - vlan = packet.strip_element_dot1q("vlan") + vlan = packet.strip_element_vlan("vlan") vlans.append(vlan) return vlans @@ -117,7 +117,7 @@ class TestVlan(TestCase): else: pkt = Packet(pkt_type='VLAN_UDP') pkt.config_layer('ether', {'dst': self.dmac, 'src': self.smac}) - pkt.config_layer('dot1q', {'vlan': vid}) + pkt.config_layer('vlan', {'vlan': vid}) pkt.send_pkt(tx_port=self.txItf) -- 1.9.3