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

[libvirt] [libvirt-glib PATCHv3 22/27] Add <network> to creation test



---
 libvirt-gconfig/tests/test-domain-create.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c
index 38a7fb9..8484b78 100644
--- a/libvirt-gconfig/tests/test-domain-create.c
+++ b/libvirt-gconfig/tests/test-domain-create.c
@@ -96,6 +96,14 @@ int main(void)
     gvir_config_domain_disk_set_target_dev(disk, "hda");
 
     devices = g_list_append(devices, disk);
+
+    /* network interface node */
+    GVirConfigDomainInterfaceNetwork *interface;
+
+    interface = gvir_config_domain_interface_network_new();
+    gvir_config_domain_interface_network_set_source(interface, "default");
+    devices = g_list_append(devices, interface);
+
     gvir_config_domain_set_devices(domain, devices);
     g_list_free(devices);
     devices = NULL;
-- 
1.7.7.3


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