All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Michal Privoznik <mprivozn@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qemu-ga: Extend guest-network-get-interfaces
Date: Fri, 21 Dec 2012 11:43:55 -0700	[thread overview]
Message-ID: <50D4ADEB.3060205@redhat.com> (raw)
In-Reply-To: <b9b948c7e79e182befff1ad3d529b3e1e2f13101.1356094706.git.mprivozn@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 2716 bytes --]

On 12/21/2012 05:59 AM, Michal Privoznik wrote:
> Nowadays only basic information is reported. However, with the
> current implementation much more can be exposed to users. like
> broadcast/destination address (the former in case of standard
> ethernet device, the latter in case of PPP interface), if the
> interface is up, of type loopback, in promisc mode or capable of
> sending multicast.
> ---
> 

> +++ b/qga/qapi-schema.json
> @@ -480,26 +480,57 @@
>  #
>  # @prefix: Network prefix length of @ip-address
>  #
> -# Since: 1.1
> +# @dest-address: The broadcast or peer address.
> +#
> +# Since: 1.1, @dest-address since 1.3

Actually, since 1.4 now (1.3 is already out).

>  ##
>  { 'type': 'GuestIpAddress',
>    'data': {'ip-address': 'str',
>             'ip-address-type': 'GuestIpAddressType',
> -           'prefix': 'int'} }
> +           'prefix': 'int',
> +           '*dest-address': 'str'} }

Is this field always going to be present in 1.4?  If so, then it doesn't
need to be marked optional (even though it wasn't present in 1.3).

>  ##
> +# @GuestNetworkInterfaceType:
> +#
> +# @broadcast: Interface has a broadcast address. In which case it is
> +#             contained in @dest-address in @GuestIpAddress.
> +#
> +# @ppp: Interface is of point-to-point type. The peer address is then in
> +#       @dest-address in @GuestIpAddress.
> +#
> +# Since: 1.3

1.4

> +##
> +{ 'enum': 'GuestNetworkInterfaceType',
> +  'data': ['broadcast', 'ppp'] }
> +##
>  # @GuestNetworkInterface:
>  #
>  # @name: The name of interface for which info are being delivered
>  #
> +# @up: If the interface is up
> +#
> +# @loopback: If the interface is of loopback type
> +#
> +# @promisc: If the interface is in promiscuous mode
> +#
> +# @multicast: If the interface is cappable of multicast

s/cappable/capable/

> +#
> +# @type: If the interface has a broadcast address(-es) assigned, or is a PPP.
> +#
>  # @hardware-address: Hardware address of @name
>  #
>  # @ip-addresses: List of addresses assigned to @name
>  #
> -# Since: 1.1
> +# Since: 1.1, @up, @loopback, @promisc, @multicast and @type since 1.3

1.4

>  ##
>  { 'type': 'GuestNetworkInterface',
>    'data': {'name': 'str',
> +           'up': 'bool',
> +           'loopback': 'bool',
> +           'promisc': 'bool',
> +           'multicast': 'bool',
> +           '*type': 'GuestNetworkInterfaceType',

Again, is this field optional?

>             '*hardware-address': 'str',
>             '*ip-addresses': ['GuestIpAddress'] } }
>  
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

  reply	other threads:[~2012-12-21 18:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-21 12:59 [Qemu-devel] [PATCH] qemu-ga: Extend guest-network-get-interfaces Michal Privoznik
2012-12-21 18:43 ` Eric Blake [this message]
2013-01-02  8:28   ` Michal Privoznik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50D4ADEB.3060205@redhat.com \
    --to=eblake@redhat.com \
    --cc=mprivozn@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.