mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00: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:
parent
74b379cbd5
commit
8fe128a46c
@ -779,13 +779,16 @@ static int testOpenFromFile(virConnectPtr conn,
|
|||||||
if (!def)
|
if (!def)
|
||||||
goto error;
|
goto error;
|
||||||
} else {
|
} else {
|
||||||
if ((def = virInterfaceDefParseNode(conn, xml, ifaces[i])) == NULL)
|
if ((def = virInterfaceDefParseNode(conn, xml, ifaces[i])) == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(iface = virInterfaceAssignDef(conn, &privconn->ifaces, def))) {
|
if (!(iface = virInterfaceAssignDef(conn, &privconn->ifaces, def))) {
|
||||||
virInterfaceDefFree(def);
|
virInterfaceDefFree(def);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iface->active = 1;
|
||||||
virInterfaceObjUnlock(iface);
|
virInterfaceObjUnlock(iface);
|
||||||
}
|
}
|
||||||
VIR_FREE(ifaces);
|
VIR_FREE(ifaces);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user