[libvirt] [PATCH 14/17] virsh: limit completion of net-dhcp-leases to active networks
Lin Ma
morecache at gmail.com
Fri Sep 11 07:13:15 UTC 2020
Signed-off-by: Lin Ma <lma at suse.de>
---
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 f488e840ac..592b08528b 100644
--- a/tools/virsh-network.c
+++ b/tools/virsh-network.c
@@ -1373,7 +1373,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,
--
2.26.0
More information about the libvir-list
mailing list