From nobody Mon Feb 9 00:31:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1605001925; cv=none; d=zohomail.com; s=zohoarc; b=KQF1r2V+3Ohgd1EFew6nejqCQXthVLTDVJNY2kuyB9Hh4c1oHdfeTBdUjDzwLCuwoWPmU7pXM9w5DERqtP84RepDOwbE0hxvu/XIGvyN6QH4jeKCz4+QI1pj2c0s+C/qDI0Ouov40Lo0u0OgYW7gjsmC5GmLzfPr8PYBbOKrxfw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605001925; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=aWzbVTRiTGeCRnVe2AutFKyEvZBmYeoTf+IleUTNw5E=; b=FRiku/YuC5YlZjsvG1WaWqfoeMKEpmQP+eWBX+Ij3vND70HvYxNwuihG1h3iis6Nq5avMF55jSKD5XUQLkWr5//akghVyJEakRzh6kdvnl/Xjsp5JEzXav9X89nNEfmvcA8RDLZhxXwAS0MclN1fZxs2YqckNNasGuXcU6nJW3k= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1605001925408216.2109374683149; Tue, 10 Nov 2020 01:52:05 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-302-BGxJ1WlAMpi6Ss6HKovk7w-1; Tue, 10 Nov 2020 04:52:02 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D6BC4186842C; Tue, 10 Nov 2020 09:51:56 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B020D5C1C4; Tue, 10 Nov 2020 09:51:56 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 7D3F8181A06B; Tue, 10 Nov 2020 09:51:56 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0AA9plfO006618 for ; Tue, 10 Nov 2020 04:51:47 -0500 Received: by smtp.corp.redhat.com (Postfix) id 70D821004036; Tue, 10 Nov 2020 09:51:47 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6AAF1110F750 for ; Tue, 10 Nov 2020 09:51:47 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 52A6689C5E5 for ; Tue, 10 Nov 2020 09:51:47 +0000 (UTC) Received: from de-smtp-delivery-52.mimecast.com (de-smtp-delivery-52.mimecast.com [51.163.158.52]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-329-a54JfCkMOyWkZyvuCGUbWQ-1; Tue, 10 Nov 2020 04:51:45 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04lp2054.outbound.protection.outlook.com [104.47.14.54]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-27-_AL-YtEaNna8Df2qG1X28A-2; Tue, 10 Nov 2020 10:51:42 +0100 Received: from AM6PR04MB5782.eurprd04.prod.outlook.com (2603:10a6:20b:aa::17) by AM6PR0402MB3399.eurprd04.prod.outlook.com (2603:10a6:209:7::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.25; Tue, 10 Nov 2020 09:51:40 +0000 Received: from AM6PR04MB5782.eurprd04.prod.outlook.com ([fe80::8945:92d8:e72a:6245]) by AM6PR04MB5782.eurprd04.prod.outlook.com ([fe80::8945:92d8:e72a:6245%6]) with mapi id 15.20.3541.025; Tue, 10 Nov 2020 09:51:40 +0000 Received: from t440p.suse.asia (60.251.47.115) by AM4P190CA0015.EURP190.PROD.OUTLOOK.COM (2603:10a6:200:56::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Tue, 10 Nov 2020 09:51:38 +0000 X-MC-Unique: BGxJ1WlAMpi6Ss6HKovk7w-1 X-MC-Unique: a54JfCkMOyWkZyvuCGUbWQ-1 X-MC-Unique: _AL-YtEaNna8Df2qG1X28A-2 From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 07/13] virsh: Add interface name completion to iface-mac command Date: Tue, 10 Nov 2020 17:50:58 +0800 Message-ID: <20201110095104.10783-8-lma@suse.com> In-Reply-To: <20201110095104.10783-1-lma@suse.com> References: <20201110095104.10783-1-lma@suse.com> X-Originating-IP: [60.251.47.115] X-ClientProxiedBy: AM4P190CA0015.EURP190.PROD.OUTLOOK.COM (2603:10a6:200:56::25) To AM6PR04MB5782.eurprd04.prod.outlook.com (2603:10a6:20b:aa::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 27c76418-ec15-4cda-24d8-08d8855e38ad X-MS-TrafficTypeDiagnostic: AM6PR0402MB3399: X-LD-Processed: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba,ExtFwd X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:296 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: FOkG064e5v7XB4bDZOhet++U7L91+hPUI1UCW6AprEU32QMhZ7qOpjD3m+ptLtph7cQUfefinS+G7I84iygfqo5mb5eYu1XtVjUr9Gx63tQdRmQTdXHSyoI1ojZMnhrRtw+jF2Qnw1VPA3RigYPFUDTFh7pmzCbVIqltttOMlAbsPKlc+KOZOtksEmWLJHbt3/2iDHz57TlXfQqWSc8NEbIZ+sQU+eaNSTBjy8hIY2AyCVbr9jzwWePCNJ8EP/tau5sxfvCD+ymCbIcazvAihp6x8oN5zTsa5yK/31HTNPDHNxuumFpHbmC8SZ9W4VWziLL7DFpHfnS0mun1Av0pGg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB5782.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(346002)(376002)(366004)(136003)(39860400002)(2616005)(1076003)(956004)(107886003)(26005)(55236004)(6506007)(186003)(16526019)(52116002)(6666004)(6486002)(4326008)(5660300002)(66556008)(66946007)(66476007)(8936002)(2906002)(6512007)(8676002)(450100002)(36756003)(316002)(6916009)(86362001)(478600001)(4744005); DIR:OUT; SFP:1101 X-MS-Exchange-AntiSpam-MessageData: bTXtBbC/ujIuzbEdBvg0fbMTcnpZYt/Xh+QMEBgFbXeS11TQXfZqU7FZaAtXMCKDT1FxiSJGH2fDVKsRMzwQb4fTZGz2SFyOCPTQfOa7wqFRdBWIjvws3m6n7ndXW3BT1We4PgVJffhw7C7nsB1+o3ti0iE6zPCddUX6LbOJ4L/PfzRkILgPq51SvrJFvwtRXx4EmBMlY4F4V9l5VChaE3t2b+D37sr3Ldn1T2EbByeVYcaUMC2N9bilw+QTW52vz9eKCkhsXvu1+lWgW+0ZJ6uIKtWzrpOnfOcKUDgdT9YedfEaAdr/v3PwxUYM5Ekwclz7Aw0LAt0C261J+kKQ7CjYun5HjfpZg4LnVPR1Yr6g8/qyF80Eedm6CvcmRxdwStEDKdsfnXsyJWH3gUqZnwPlr7JwbEwGgkF89jhVczlxUG/zi2WD+ay7m6B6U6mbkKw6L47Ne1wYtbK9HaZ6JSL4pnE732OtY6ysZ0VsQcA4q693JzawRkFVnmfBUNXcUJKP/lmRhxV6rAtf4gdD90PoMAHeVpPjWJsgq4SMFZjwpdATL3D3L/WBrukIRxn12dNQLmEJVBE9AcyGgOc2rQW8jOSh173Xieyyai7IA4ZGDJcIcgtKI446gPQFcXBtUbDoOdrHz7BHkMB7GisgunhFdq4XzngpadJMDdIELiJ9yNnRAkldaWVSd78Vk5rHM+d94GYsC1iwO6DVX404EVcdoK93OI8cksgBfjjlrQ7tY2tw/MbMEFRJbS4woUQP4y1HVsDHt+eSumI+K9iJJT9F37CrcEMpXRb5jOWKsVsopwiY+GD3eGg8UGXZL2Uqg2kl5Gba8UFNSID+1LhrCEdlutHWMMFdAH6YMoeBEg0yYn/ONNpnr+9o+g0BX0RztPgFpuFdqPdIOttlllIv+w== X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 27c76418-ec15-4cda-24d8-08d8855e38ad X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB5782.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2020 09:51:40.1374 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oNrQf3uZj9J+Rd6Dol+6hJux9Wwmv7S8ATrewl77ZQBQibh9veUsrN61YPlzJfBe X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3399 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 0AA9plfO006618 X-loop: libvir-list@redhat.com Cc: mprivozn@redhat.com, Lin Ma X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Lin Ma --- tools/virsh-interface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/virsh-interface.c b/tools/virsh-interface.c index ae234e1e22..858052d341 100644 --- a/tools/virsh-interface.c +++ b/tools/virsh-interface.c @@ -441,6 +441,7 @@ static const vshCmdOptDef opts_interface_mac[] =3D { {.name =3D "interface", .type =3D VSH_OT_DATA, .flags =3D VSH_OFLAG_REQ, + .completer =3D virshInterfaceNameCompleter, .help =3D N_("interface name") }, {.name =3D NULL} --=20 2.26.0