Comment 12 for bug 1810325

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

There is a problem in os-vif, in the way the libraries (for Linux and Windows) are loaded. Those libraries are loaded inside a privsep context instead of being loaded outside the context and then called.

Instead of this, what we need in os-vif is to make a conditional load, something like:
if os.name == 'nt':
    from os_vif.internal.command.ip.windows.impl_netifaces import Netifaces as ip_lib_class
else:
    from os_vif.internal.command.ip.linux.impl_pyroute2 import PyRoute2 as ip_lib_class

and then use this class (both Linux and Windows have the same interface, os_vif.internal.command.ip.ip_command.IpCommand)