From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 831957D3E for ; Thu, 24 Aug 2017 08:55:02 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP; 23 Aug 2017 23:55:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,420,1498546800"; d="scan'208";a="1209785300" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 23 Aug 2017 23:55:00 -0700 From: "xu,gang" To: dts@dpdk.org Cc: "xu,gang" Date: Thu, 24 Aug 2017 14:56:16 +0800 Message-Id: <1503557776-87872-1-git-send-email-gangx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] fix enable ipv6 no work 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, 24 Aug 2017 06:55:02 -0000 sometimes enable ipv6 no working, need restart interface Signed-off-by: xu,gang --- framework/crb.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/framework/crb.py b/framework/crb.py index 00f418d..facf319 100644 --- a/framework/crb.py +++ b/framework/crb.py @@ -412,6 +412,15 @@ class Crb(object): self.send_expect("sysctl net.ipv6.conf.%s.disable_ipv6=0" % intf, "# ", alt_session=True) + out = self.send_expect( + "ifconfig %s" % intf, "# ", alt_session=True) + if "inet6" not in out: + self.send_expect("ifconfig %s down" % + intf, "# ", alt_session=True) + self.send_expect( + "ifconfig %s up" % intf, "# ", alt_session=True) + + def create_file(self, contents, fileName): """ Create file with contents and copy it to CRB. -- 1.9.3