From nobody Mon Feb 9 10:47:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1599808068; cv=none; d=zohomail.com; s=zohoarc; b=IZwM85KVPT2HJRlamXXl66HfnW8kFWA0bcSVGGpPEwR2vnuFz35RFx7Ui7wlzkEeulm/0n2gcdLQK49sA3f8ajlsruVMydNZw4+ufa0cncxzEPrnFIfGW1zI2Khg48rYRyvmXYLlIngurChyoCAE42xUXjfEAvUXe1cR+mV3CKY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599808068; 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=Dcu9SxRwR13pNTubXnTYLeCiEZqyQvDDvi7LvW90XvM=; b=nsAu9F1dFXPlT72rS2RoSv+KbQqKq4QthBoeSTLpwYral8+ohT9Ve70yWtZtClebDncS86TopzXy0B9s210HJMpeN9zRHWdI2YTaXtEk3CleSHOWPjCYZ9gNvDbjdiB79MFLVNZBuAXAIhEY+vWLGgKv88TcQXklII3YxdGBUnU= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1599808068104361.76499197646774; Fri, 11 Sep 2020 00:07:48 -0700 (PDT) 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-273--EZiau68PZOeMr_BbYkaug-1; Fri, 11 Sep 2020 03:07:44 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F2FC9802B78; Fri, 11 Sep 2020 07:07:38 +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 CD8BB7512C; Fri, 11 Sep 2020 07:07:38 +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 9645F180B658; Fri, 11 Sep 2020 07:07:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08B76wZp006990 for ; Fri, 11 Sep 2020 03:06:58 -0400 Received: by smtp.corp.redhat.com (Postfix) id 80E9E2144B2F; Fri, 11 Sep 2020 07:06:58 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7CA642166B27 for ; Fri, 11 Sep 2020 07:06:58 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) (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 6319B906380 for ; Fri, 11 Sep 2020 07:06:58 +0000 (UTC) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-147-tvjDv4diN9aBtxfT8FsvFQ-1; Fri, 11 Sep 2020 03:06:55 -0400 Received: by mail-pf1-f196.google.com with SMTP id d9so6592509pfd.3 for ; Fri, 11 Sep 2020 00:06:55 -0700 (PDT) Received: from t440p.suse.asia (60-251-47-115.HINET-IP.hinet.net. [60.251.47.115]) by smtp.gmail.com with ESMTPSA id a19sm1252037pfn.10.2020.09.11.00.06.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 00:06:53 -0700 (PDT) X-MC-Unique: -EZiau68PZOeMr_BbYkaug-1 X-MC-Unique: tvjDv4diN9aBtxfT8FsvFQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Dcu9SxRwR13pNTubXnTYLeCiEZqyQvDDvi7LvW90XvM=; b=R1lpSevf4gmO80465suLfl9GDwbTkMiPlAkwaElhlwepFzFIZNkQ+fl3S+0gvqoSSg rGrrcjVRgcnHTbbPD7pnke8SMBFTqJBepGRz6HZIotsjLavEmEI7Oq/J+s82wP5NxrJS 8QMgb+FQZn0hZCjnHqhwtX96mgoO6QP3gzhg41KomiDTfQeVEwwPHXu9zKP7cjI9ujAy SZj+UFkh3pwaP7+rXqK+c8B2z7M4nZJRObh+6uMd9wGAnfOOUVmKnNIce7v0c6kQDwEJ DSP0WlHD8wAfKXWfqyyDKBYIn3uXzXtnLTG+z8E40H7XCVsUgMqD8bYnVfA6ml6ZqL8Q BMYw== X-Gm-Message-State: AOAM530j0rQ/0YGEOswsK3Pt3Qdv2ur0VmHZBwcA++u9oY8m8D50TqN2 bD18FiQf3C3bpcZje+CRasJndjFKX3Dhpw== X-Google-Smtp-Source: ABdhPJweXo5NQjgjOKg6tc5QDgyYFz9X0wy1TgxB/TM0DooaD9O1Kh0Q+a0SfpqdDCoEz9b9dIzQrw== X-Received: by 2002:a65:6913:: with SMTP id s19mr698711pgq.116.1599808014512; Fri, 11 Sep 2020 00:06:54 -0700 (PDT) From: Lin Ma X-Google-Original-From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 09/12] virsh: iface-list: options --all and --inactive are mutually exclusive Date: Fri, 11 Sep 2020 15:06:16 +0800 Message-Id: <20200911070619.12325-10-lma@suse.de> In-Reply-To: <20200911070619.12325-1-lma@suse.de> References: <20200911070619.12325-1-lma@suse.de> MIME-Version: 1.0 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.6 X-loop: libvir-list@redhat.com Cc: 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.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Lin Ma Reviewed-by: J=C3=A1n Tomko --- tools/virsh-interface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/virsh-interface.c b/tools/virsh-interface.c index a6b52726c9..2bca2483dd 100644 --- a/tools/virsh-interface.c +++ b/tools/virsh-interface.c @@ -351,6 +351,8 @@ cmdInterfaceList(vshControl *ctl, const vshCmd *cmd G_G= NUC_UNUSED) bool ret =3D false; vshTablePtr table =3D NULL; =20 + VSH_EXCLUSIVE_OPTIONS_VAR(all, inactive); + if (inactive) flags =3D VIR_CONNECT_LIST_INTERFACES_INACTIVE; if (all) --=20 2.26.0