]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh-network: Add network name completion to 'net-uuid' command
authorLin Ma <lma@suse.com>
Tue, 15 May 2018 11:18:22 +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 89613f2a243931f3bd649b2c06e58968c498cb0f..ca07fb568fc63c5df5e82c68b7fbf63ca3e0ca18 100644 (file)
@@ -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}
 };