From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bspHR-0002uw-2E for qemu-devel@nongnu.org; Sat, 08 Oct 2016 06:55:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bspHP-0003r2-0h for qemu-devel@nongnu.org; Sat, 08 Oct 2016 06:55:00 -0400 Date: Sat, 8 Oct 2016 11:54:50 +0100 From: "Richard W.M. Jones" Message-ID: <20161008105450.GY11243@redhat.com> References: <1475923446-29428-1-git-send-email-ashijeetacharya@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1475923446-29428-1-git-send-email-ashijeetacharya@gmail.com> Subject: Re: [Qemu-devel] [PATCH] qapi: allow blockdev-add for ssh List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ashijeet Acharya Cc: eblake@redhat.com, armbru@redhat.com, kwolf@redhat.com, qemu-devel@nongnu.org, qemu-block@nongnu.org On Sat, Oct 08, 2016 at 04:14:06PM +0530, Ashijeet Acharya wrote: > Introduce new object 'BlockdevOptionsSsh' in qapi/block-core.json to > support blockdev-add for SSH network protocol driver. Use only 'struct > InetSocketAddress' since SSH only supports connection over TCP. > > +## > +# @BlockdevoptionsSsh > +# > +# @server: host address and port number > +# > +# @path: path to the image on the host > +# > +# @user: user as which to connect > +# > +# @host_key_check defines how and what to check the host key against > +# > +# Since 2.8 > +## > +{ 'struct': 'BlockdevoptionsSsh', > + 'data': { 'server': 'InetSocketAddress', > + 'path': 'str', > + 'user': 'str', > + 'host_key_check': 'str' } } > + This certainly reflects the current ssh settings. If you really wanted to get into the down-and-dirty details, then host_key_check has some structure. "yes", "no", "sha1:..." and others. But probably we don't want all of that in the JSON. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org