virsh: iface-list: options --all and --inactive are mutually exclusive

Signed-off-by: Lin Ma <lma@suse.de>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Lin Ma authored and Ján Tomko committed 2020-09-12 12:49:31 +02:00
1 parent b7b53c651a
commit b34c571e25
1 file changed
+2
+2
View File
@@ -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)