mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
[LXC] Add XML parsing of container network interfaces.
This commit is contained in:
@@ -291,6 +291,13 @@ static virDomainPtr lxcDomainDefine(virConnectPtr conn, const char *xml)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ((def->nets != NULL) && !(driver->have_netns)) {
|
||||
lxcError(conn, NULL, VIR_ERR_NO_SUPPORT,
|
||||
_("System lacks NETNS support"));
|
||||
lxcFreeVMDef(def);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!(vm = lxcAssignVMDef(conn, driver, def))) {
|
||||
lxcFreeVMDef(def);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user