]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: Add interface name completion to iface-mac command
authorLin Ma <lma@suse.com>
Tue, 10 Nov 2020 09:50:58 +0000 (17:50 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 10 Nov 2020 17:34:16 +0000 (18:34 +0100)
Signed-off-by: Lin Ma <lma@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-interface.c

index ae234e1e22e148e36000f92586bf09f17826797c..858052d3419c3b04cb89cd1c5ee7c2f1f6b66040 100644 (file)
@@ -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}