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

index ae2b52bfc3478aff906cf82e11a0439599e9ae00..ae234e1e22e148e36000f92586bf09f17826797c 100644 (file)
@@ -786,6 +786,7 @@ static const vshCmdOptDef opts_interface_bridge[] = {
     {.name = "interface",
      .type = VSH_OT_DATA,
      .flags = VSH_OFLAG_REQ,
+     .completer = virshInterfaceNameCompleter,
      .help = N_("existing interface name")
     },
     {.name = "bridge",