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 C319AA00E6 for ; Mon, 13 May 2019 09:58:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 850CE2BBE; Mon, 13 May 2019 09:58:07 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 0358D239 for ; Mon, 13 May 2019 09:58:05 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 May 2019 00:58:05 -0700 X-ExtLoop1: 1 Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga008.fm.intel.com with ESMTP; 13 May 2019 00:58:05 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 13 May 2019 00:58:04 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 13 May 2019 00:58:04 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.249]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.10]) with mapi id 14.03.0415.000; Mon, 13 May 2019 15:58:02 +0800 From: "Zhang, YanX A" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [patch V1] alter the regular expression format of hostfwd value Thread-Index: AQHVCWBzJg9rJxYfcU6BHcKG04fdAqZor9XAgAAAaNA= Date: Mon, 13 May 2019 07:58:02 +0000 Message-ID: <2C49E4B25FAD1D419F7564D633EF72E1583657@shsmsx102.ccr.corp.intel.com> References: <1557707344-5420-1-git-send-email-lihongx.ma@intel.com> <4DC48DF9BDA3E54A836D2D3C057DEC6F0B17EF21@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <4DC48DF9BDA3E54A836D2D3C057DEC6F0B17EF21@SHSMSX101.ccr.corp.intel.com> Accept-Language: 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 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" tested-by: Zhang, YanX A > -----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