[libvirt] [PATCH 1/3] network: fix typos and docs

Eric Blake eblake at redhat.com
Mon Jan 7 23:14:52 UTC 2013


On 01/03/2013 12:13 AM, Guannan Ren wrote:
> ---
>  docs/formatdomain.html.in | 9 ++++++---
>  src/conf/domain_conf.c    | 4 ++--
>  2 files changed, 8 insertions(+), 5 deletions(-)
> 
> diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
> index 94df6f8..45d7593 100644
> --- a/docs/formatdomain.html.in
> +++ b/docs/formatdomain.html.in
> @@ -2546,12 +2546,15 @@
>        virtualport types (and also to leave out certain attributes); at
>        domain startup time, a complete <code><virtualport></code>
>        element will be constructed by merging together the type and
> -      attributes found in the which will be filled in from the network
> -      or portgroup <code><virtualport></code>)
> +      attributes defined in the network and the portgroup referenced
> +      by the interface. The newly-constructed virtualport is a combination
> +      of them. The attributes from lower virtualport can't make change

s/make change to/change/

> +++ b/src/conf/domain_conf.c
> @@ -4994,7 +4994,7 @@ virDomainNetDefParseXML(virCapsPtr caps,
>                         def->type == VIR_DOMAIN_NET_TYPE_INTERNAL &&
>                         xmlStrEqual(cur->name, BAD_CAST "source")) {
>                  internal = virXMLPropString(cur, "name");
> -            } else if (!network &&
> +            } else if (!bridge &&
>                         def->type == VIR_DOMAIN_NET_TYPE_BRIDGE &&
>                         xmlStrEqual(cur->name, BAD_CAST "source")) {
>                  bridge = virXMLPropString(cur, "bridge");
> @@ -5028,7 +5028,7 @@ virDomainNetDefParseXML(virCapsPtr caps,
>                                       " <interface type='%s'>"), type);
>                      goto error;
>                  }
> -            } else if (!network &&
> +            } else if (!address &&

Looks okay to me, but you might want to get Laine's ACK as well.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130107/04da336b/attachment-0001.sig>


More information about the libvir-list mailing list