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

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


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

diff --git a/tools/virsh-network.c b/tools/virsh-network.c
index 89613f2a24..ca07fb568f 100644
--- a/tools/virsh-network.c
+++ b/tools/virsh-network.c
@@ -1032,11 +1032,7 @@ static const vshCmdInfo info_network_uuid[] = {
 };
 
 static const vshCmdOptDef opts_network_uuid[] = {
-    {.name = "network",
-     .type = VSH_OT_DATA,
-     .flags = VSH_OFLAG_REQ,
-     .help = N_("network name")
-    },
+    VIRSH_COMMON_OPT_NETWORK(N_("network name"), 0),
     {.name = NULL}
 };
 
-- 
2.16.2




More information about the libvir-list mailing list