From 81dd306fa7f1865ff555acf9488cb50eaa9562d7 Mon Sep 17 00:00:00 2001 From: Lin Ma Date: Fri, 11 Sep 2020 15:13:15 +0800 Subject: [PATCH] virsh: limit completion of net-dhcp-leases to active networks Signed-off-by: Lin Ma Reviewed-by: Michal Privoznik --- tools/virsh-network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,