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 D65C28E86 for ; Tue, 13 Oct 2015 11:19:18 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 13 Oct 2015 02:19:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,677,1437462000"; d="scan'208";a="809775687" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 13 Oct 2015 02:19:17 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 13 Oct 2015 02:19:17 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 13 Oct 2015 02:19:17 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.204]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.194]) with mapi id 14.03.0248.002; Tue, 13 Oct 2015 17:19:15 +0800 From: "Liu, Yong" To: "Qiu, Michael" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH] framework/dut: Fix upper and lower for MAC address Thread-Index: AQHRBX90o+4TiCP0HkiDDmZ7x59G3Z5pJNVA Date: Tue, 13 Oct 2015 09:19:15 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10F27D28@SHSMSX103.ccr.corp.intel.com> References: <1444717254-32269-1-git-send-email-michael.qiu@intel.com> In-Reply-To: <1444717254-32269-1-git-send-email-michael.qiu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] framework/dut: Fix upper and lower for MAC address 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: Tue, 13 Oct 2015 09:19:19 -0000 Exactly, our configuration should have the ability to handle same configura= tion with different formats.=20 Thanks, applied. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Michael Qiu > Sent: Tuesday, October 13, 2015 8:21 AM > To: dts@dpdk.org > Subject: [dts] [PATCH] framework/dut: Fix upper and lower for MAC address >=20 > When MAC address are actually the same but different upper and lower, > it should be take as the same. >=20 > Signed-off-by: Michael Qiu > --- > framework/dut.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/framework/dut.py b/framework/dut.py > index 1199fc6..70bd146 100644 > --- a/framework/dut.py > +++ b/framework/dut.py > @@ -778,9 +778,9 @@ class Dut(Crb): >=20 > for key in ['intf', 'mac', 'numa', 'peer', 'source']: > if key in port_cfg: > - if key in port and port_cfg[key] !=3D port[key]: > + if key in port and port_cfg[key].lower() !=3D > port[key].lower(): > self.logger.warning("CONFIGURED %s NOT SAME AS > SCANNED!!!" % (key.upper())) > - port[key] =3D port_cfg[key] > + port[key] =3D port_cfg[key].lower() >=20 > def map_available_ports(self): > """ > -- > 1.9.3