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

Lin Ma posted 13 patches 5 years, 3 months ago
[libvirt] [PATCH v2 07/13] virsh: Add interface name completion to iface-mac command
Posted by Lin Ma 5 years, 3 months ago
Signed-off-by: Lin Ma <lma@suse.com>
---
 tools/virsh-interface.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/virsh-interface.c b/tools/virsh-interface.c
index ae234e1e22..858052d341 100644
--- a/tools/virsh-interface.c
+++ b/tools/virsh-interface.c
@@ -441,6 +441,7 @@ static const vshCmdOptDef opts_interface_mac[] = {
     {.name = "interface",
      .type = VSH_OT_DATA,
      .flags = VSH_OFLAG_REQ,
+     .completer = virshInterfaceNameCompleter,
      .help = N_("interface name")
     },
     {.name = NULL}
-- 
2.26.0