[LXC] Add XML parsing of container network interfaces.

This commit is contained in:
Dan Smith
2008-06-26 16:08:59 +00:00
parent e59eb52fad
commit 97e1fc3734
3 changed files with 250 additions and 0 deletions

View File

@@ -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;