[libvirt] [PATCH 09/12] virsh: iface-list: options --all and --inactive are mutually exclusive

Lin Ma posted 12 patches 5 years, 5 months ago
There is a newer version of this series
[libvirt] [PATCH 09/12] virsh: iface-list: options --all and --inactive are mutually exclusive
Posted by Lin Ma 5 years, 5 months ago
Signed-off-by: Lin Ma <lma@suse.de>
---
 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_GNUC_UNUSED)
     bool ret = false;
     vshTablePtr table = NULL;
 
+    VSH_EXCLUSIVE_OPTIONS_VAR(all, inactive);
+
     if (inactive)
         flags = VIR_CONNECT_LIST_INTERFACES_INACTIVE;
     if (all)
-- 
2.26.0

Re: [libvirt] [PATCH 09/12] virsh: iface-list: options --all and --inactive are mutually exclusive
Posted by Ján Tomko 5 years, 4 months ago
On a Friday in 2020, Lin Ma wrote:
>Signed-off-by: Lin Ma <lma@suse.de>
>---
> tools/virsh-interface.c | 2 ++
> 1 file changed, 2 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano