virsh: Add interface name completion to iface-mac command

Signed-off-by: Lin Ma <lma@suse.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Lin Ma 2020-11-10 17:50:58 +08:00 committed by Michal Privoznik
parent 498046daa6
commit f2fbf2dc95

View 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}