From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 0ACE4A05D3 for ; Wed, 22 May 2019 10:58:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F06C22C39; Wed, 22 May 2019 10:58:24 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 47C66A49 for ; Wed, 22 May 2019 10:58:23 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2019 01:58:21 -0700 X-ExtLoop1: 1 Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga007.jf.intel.com with ESMTP; 22 May 2019 01:58:21 -0700 Received: from fmsmsx101.amr.corp.intel.com (10.18.124.199) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 22 May 2019 01:58:21 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx101.amr.corp.intel.com (10.18.124.199) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 22 May 2019 01:58:20 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.7]) with mapi id 14.03.0415.000; Wed, 22 May 2019 16:58:18 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [patch V1] alter the regular expression format of hostfwd value Thread-Index: AQHVCWBzlvcnRXqhlEK0TcZ3npziMKZ25jnw Date: Wed, 22 May 2019 08:58:18 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BA84371@SHSMSX101.ccr.corp.intel.com> References: <1557707344-5420-1-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1557707344-5420-1-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGJmMWFiMjItMDRkYS00NjQyLTljMGEtYTA2MWE3NTY5NWI5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZWV5Z2QyMHdDQWFHQ2F5ZWtyMndNV3huRmFcL1grNmlRYmNZUXBIc0NCTGxQZXZMQmlkZXM5bG9FT01BTDBIYUoifQ== 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 V1] alter the regular expression format of hostfwd value 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: Monday, May 13, 2019 8:29 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [patch V1] alter the regular expression format of hostfwd = value >=20 > Signed-off-by: lihong > --- > framework/qemu_kvm.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/framework/qemu_kvm.py b/framework/qemu_kvm.py index > c3e8f37..80a39c8 100644 > --- a/framework/qemu_kvm.py > +++ b/framework/qemu_kvm.py > @@ -562,7 +562,7 @@ class QEMUKvm(VirtBase): > Use regular expression to check if hostfwd value format is corre= ct. > """ > regx_ip =3D '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' > - regx_hostfwd =3D r'["tcp" | "udp"]?:%s?:\d+-%s?:\d+' % (regx_ip,= regx_ip) > + regx_hostfwd =3D r'(tcp|udp)?:(%s)?:\d+-(%s)?:\d+' % (regx_ip, > + regx_ip) > if not re.match(regx_hostfwd, opt_hostfwd): > raise Exception("Option opt_hostfwd format is not correct,\n= " + > "it is %s,\n " % opt_hostfwd + > -- > 2.7.4