]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: limit completion of net-dhcp-leases to active networks
authorLin Ma <morecache@gmail.com>
Fri, 11 Sep 2020 07:13:15 +0000 (15:13 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 14 Sep 2020 13:52:40 +0000 (15:52 +0200)
Signed-off-by: Lin Ma <lma@suse.de>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-network.c

index 63f3120754058cba98cce5564005bf6c58129224..94459adea8ccb3c585c94e2b76deb36e34f3169a 100644 (file)
@@ -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,