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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: TJ <linux@xxxxxx>

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.

Signed-off-by: TJ <linux@xxxxxx>
---
 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;
-- 
1.8.1.2.433.g9808ce0.dirty

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]