[libvirt] [PATCH 03/10] conf: Network - add pointers to enabled virNetworkIpDef DHCP settings

Eric Blake eblake at redhat.com
Thu Feb 28 03:26:01 UTC 2013


On 02/27/2013 07:57 PM, TJ wrote:
> From: TJ <linux at iam.tj>
> 
> Having previously introduced DHCP enabled and relay state within the
> virNetworkIpDef structure - which can be one of many on each network -
> these pointers allow us to track and easily access the DHCP state for
> IPv4 and IPv6 when setting up the network without having to iterate
> every virNetworkIpDef to find the DHCP state.

This patch is useless in isolation; it's small enough that it is
probably worth squashing in with the first patch to actual use these
members.

> 
> Signed-off-by: TJ <linux at iam.tj>
> ---
>  src/conf/network_conf.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/conf/network_conf.h b/src/conf/network_conf.h
> index 8400eab..1889c45 100644
> --- a/src/conf/network_conf.h
> +++ b/src/conf/network_conf.h
> @@ -231,6 +231,8 @@ struct _virNetworkDef {
>      virPortGroupDefPtr portGroups;
>      virNetDevBandwidthPtr bandwidth;
>      virNetDevVlan vlan;
> +    virNetworkIpDefPtr ipv4_dhcp;
> +    virNetworkIpDefPtr ipv6_dhcp;
>  };
>  
>  typedef struct _virNetworkObj virNetworkObj;
> 

-- 
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: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130227/4f72fd97/attachment-0001.sig>


More information about the libvir-list mailing list