[libvirt] [PATCH] test: Activate interfaces specified through driver config file.

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

 



This matches the behavior of domains, storage, etc. Also, fix up some
whitespace issues in the area.

Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx>
---
 src/test/test_driver.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 0b866d2..0541a73 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -779,13 +779,16 @@ static int testOpenFromFile(virConnectPtr conn,
             if (!def)
                 goto error;
         } else {
-        if ((def = virInterfaceDefParseNode(conn, xml, ifaces[i])) == NULL)
+            if ((def = virInterfaceDefParseNode(conn, xml, ifaces[i])) == NULL)
                 goto error;
         }
+
         if (!(iface = virInterfaceAssignDef(conn, &privconn->ifaces, def))) {
             virInterfaceDefFree(def);
             goto error;
         }
+
+        iface->active = 1;
         virInterfaceObjUnlock(iface);
     }
     VIR_FREE(ifaces);
-- 
1.6.5.rc2

--
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]