]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh-network: Add network name completion to 'net-event' command
authorLin Ma <lma@suse.com>
Tue, 15 May 2018 11:18:20 +0000 (19:18 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 17 May 2018 15:06:11 +0000 (17:06 +0200)
Signed-off-by: Lin Ma <lma@suse.com>
tools/virsh-network.c

index 7a8bcb1beb606e8cff69dcf5460a279eba159c19..bcf322a5ae6e8cafdfedc7f6756b90e6153f6c48 100644 (file)
@@ -1202,10 +1202,7 @@ static const vshCmdInfo info_network_event[] = {
 };
 
 static const vshCmdOptDef opts_network_event[] = {
-    {.name = "network",
-     .type = VSH_OT_STRING,
-     .help = N_("filter by network name or uuid")
-    },
+    VIRSH_COMMON_OPT_NETWORK_OT_STRING(N_("filter by network name or uuid"), 0),
     {.name = "event",
      .type = VSH_OT_STRING,
      .help = N_("which event type to wait for")