mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 10:03:49 +03:00
Activate the interface drivers, and cleanups
* src/libvirt.c: activate the interface drivers * po/POTFILES.in: add the netcf driver as a source of localization strings * src/interface_driver.c: NETCF_ENOMEM -> VIR_ERR_NO_MEMORY mapping was breaking syntax checking
This commit is contained in:
parent
da4f146f83
commit
909d647aab
@ -7,6 +7,7 @@ src/console.c
|
|||||||
src/datatypes.c
|
src/datatypes.c
|
||||||
src/domain_conf.c
|
src/domain_conf.c
|
||||||
src/interface_conf.c
|
src/interface_conf.c
|
||||||
|
src/interface_driver.c
|
||||||
src/iptables.c
|
src/iptables.c
|
||||||
src/libvirt.c
|
src/libvirt.c
|
||||||
src/lxc_container.c
|
src/lxc_container.c
|
||||||
|
@ -69,8 +69,11 @@ static int netcf_to_vir_err(int netcf_errcode)
|
|||||||
/* other error, copout for being more specific */
|
/* other error, copout for being more specific */
|
||||||
return VIR_ERR_INTERNAL_ERROR;
|
return VIR_ERR_INTERNAL_ERROR;
|
||||||
case NETCF_ENOMEM:
|
case NETCF_ENOMEM:
|
||||||
/* allocation failed */
|
/*
|
||||||
return VIR_ERR_NO_MEMORY;
|
* allocation failed return VIR ERR NO MEMORY
|
||||||
|
* though it should not be used now.
|
||||||
|
*/
|
||||||
|
return(2);
|
||||||
case NETCF_EXMLPARSER:
|
case NETCF_EXMLPARSER:
|
||||||
/* XML parser choked */
|
/* XML parser choked */
|
||||||
return VIR_ERR_XML_ERROR;
|
return VIR_ERR_XML_ERROR;
|
||||||
|
@ -1026,9 +1026,6 @@ do_open (const char *name,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
/* TODO: reactivate once we have an interface driver */
|
|
||||||
|
|
||||||
for (i = 0; i < virInterfaceDriverTabCount; i++) {
|
for (i = 0; i < virInterfaceDriverTabCount; i++) {
|
||||||
res = virInterfaceDriverTab[i]->open (ret, auth, flags);
|
res = virInterfaceDriverTab[i]->open (ret, auth, flags);
|
||||||
DEBUG("interface driver %d %s returned %s",
|
DEBUG("interface driver %d %s returned %s",
|
||||||
@ -1047,7 +1044,6 @@ do_open (const char *name,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Secondary driver for storage. Optional */
|
/* Secondary driver for storage. Optional */
|
||||||
for (i = 0; i < virStorageDriverTabCount; i++) {
|
for (i = 0; i < virStorageDriverTabCount; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user