[libvirt] [PATCH 07/19] virsh: Add interface name completion to iface-mac command

Lin Ma lma at suse.com
Mon Nov 2 08:26:09 UTC 2020


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

diff --git a/tools/virsh-interface.c b/tools/virsh-interface.c
index 13e120d7a0..df97b74c4c 100644
--- a/tools/virsh-interface.c
+++ b/tools/virsh-interface.c
@@ -440,11 +440,7 @@ static const vshCmdInfo info_interface_mac[] = {
 };
 
 static const vshCmdOptDef opts_interface_mac[] = {
-    {.name = "interface",
-     .type = VSH_OT_DATA,
-     .flags = VSH_OFLAG_REQ,
-     .help = N_("interface name")
-    },
+    VIRSH_COMMON_OPT_INTERFACE(N_("interface name"), 0),
     {.name = NULL}
 };
 
-- 
2.26.0





More information about the libvir-list mailing list