mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
test: Activate interfaces specified through driver config file.
This matches the behavior of domains, storage, etc. Also, fix up some whitespace issues in the area.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user