From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 0473E5A79 for ; Fri, 17 Jul 2015 05:46:04 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 16 Jul 2015 20:46:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,492,1432623600"; d="scan'208";a="525737475" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by FMSMGA003.fm.intel.com with ESMTP; 16 Jul 2015 20:46:03 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t6H3k1E3021278; Fri, 17 Jul 2015 11:46:01 +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 t6H3jxlD025509; Fri, 17 Jul 2015 11:46:01 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t6H3jxxZ025505; Fri, 17 Jul 2015 11:45:59 +0800 From: Yong Liu To: dts@dpdk.org Date: Fri, 17 Jul 2015 11:45:58 +0800 Message-Id: <1437104758-25473-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] fix bug that when tester port is IXIA should not change ipv6 setting 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, 17 Jul 2015 03:46:05 -0000 From: Marvin Liu Signed-off-by: Marvin Liu diff --git a/framework/dut.py b/framework/dut.py index 2f33a51..d657fea 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -834,13 +834,15 @@ class Dut(Crb): def disable_tester_ipv6(self): for tester_port in self.ports_map: - port = self.tester.ports_info[tester_port]['port'] - port.disable_ipv6() + if self.tester.ports_info[tester_port]['type'] != 'ixia': + port = self.tester.ports_info[tester_port]['port'] + port.disable_ipv6() def enable_tester_ipv6(self): for tester_port in self.ports_map: - port = self.tester.ports_info[tester_port]['port'] - port.enable_ipv6() + if self.tester.ports_info[tester_port]['type'] != 'ixia': + port = self.tester.ports_info[tester_port]['port'] + port.enable_ipv6() def check_port_occupied(self, port): out = self.alt_session.send_expect('lsof -i:%d' % port, '# ') -- 1.9.3