[libvirt] [PATCH 5/9] virsh-network: Add network name completion to 'net-event' command

Lin Ma lma at suse.com
Tue May 15 11:18:20 UTC 2018


Signed-off-by: Lin Ma <lma at suse.com>
---
 tools/virsh-network.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/tools/virsh-network.c b/tools/virsh-network.c
index 7a8bcb1beb..bcf322a5ae 100644
--- a/tools/virsh-network.c
+++ b/tools/virsh-network.c
@@ -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")
-- 
2.16.2




More information about the libvir-list mailing list