From: Lin Ma Date: Fri, 11 Sep 2020 07:13:15 +0000 (+0800) Subject: virsh: limit completion of net-dhcp-leases to active networks X-Git-Tag: v6.8.0-rc1~159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81dd306fa7f1865ff555acf9488cb50eaa9562d7;p=thirdparty%2Flibvirt.git virsh: limit completion of net-dhcp-leases to active networks Signed-off-by: Lin Ma Reviewed-by: Michal Privoznik --- diff --git a/tools/virsh-network.c b/tools/virsh-network.c index 63f3120754..94459adea8 100644 --- a/tools/virsh-network.c +++ b/tools/virsh-network.c @@ -1372,7 +1372,7 @@ static const vshCmdInfo info_network_dhcp_leases[] = { }; static const vshCmdOptDef opts_network_dhcp_leases[] = { - VIRSH_COMMON_OPT_NETWORK_FULL(0), + VIRSH_COMMON_OPT_NETWORK_FULL(VIR_CONNECT_LIST_NETWORKS_ACTIVE), {.name = "mac", .type = VSH_OT_STRING, .flags = VSH_OFLAG_NONE,